/*
 * Pack 93 «احجز هدية»: the booking form's gift card (resources/views/website/chalets/partials/gift-card.blade.php) and
 * the summary's gift row (gift-summary.blade.php). Loaded only while the switch `gift` is on. The look of the Main
 * board: navy #11212D / #253745, the site's greys, the gold gift badge.
 */
.gift-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.gift-toggle__icon { background: #FBF1DC !important; color: #6B4E12 !important; }
.gift-status { margin-top: 0; }

.gift-card { min-width: 0; margin: 0; padding: 12px; border: 0; border-radius: 18px; background: #F1F3F3; display: flex; flex-direction: column; gap: 12px; font-family: inherit; }
.gift-card[hidden] { display: none; }
.gift-card__title { margin: 2px 4px 0; padding: 0; font-size: 17px; font-weight: 900; line-height: 1.4; color: #06141B; }

.gift-sec { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: #FFFFFF; box-shadow: 0 4px 16px rgba(6, 20, 27, 0.06); }
.gift-sec__title { margin: 0; font-size: 16px; font-weight: 800; color: #06141B; }
.gift-label { margin: 0; font-size: 13px; font-weight: 700; color: #4A5C6A; }
.gift-hint { margin: 0; font-size: 12.5px; line-height: 1.6; color: #4A5C6A; }
.gift-err { margin: 0; font-size: 12.5px; line-height: 1.6; font-weight: 700; color: #B91C1C; }
.gift-err[hidden] { display: none; }
.gift-card .booking-input.has-error, .gift-card .form-control.has-error { border-color: #DC2626 !important; }

/* «المناسبة» */
.gift-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gift-chip { position: relative; margin: 0; }
.gift-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gift-chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid #DCE0E0; border-radius: 999px; background: #FFFFFF; color: #253745; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.gift-chip input:checked + span { border-color: #253745; background: #253745; color: #FFFFFF; }
.gift-chip input:focus-visible + span { outline: 3px solid rgba(37, 55, 69, 0.35); outline-offset: 2px; }

/* «رسالتك» */
.gift-message { min-height: 112px; line-height: 1.7; resize: vertical; }
.gift-counter { align-self: flex-end; font-size: 12px; color: #4A5C6A; }

/* «رسالة فيديو» */
.gift-video { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed #B9C2C2; border-radius: 14px; }
.gift-video[hidden] { display: none; }
.gift-video.is-ready { border-style: solid; border-color: #253745; }
.gift-video__thumb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 12px; background: #11212D; display: grid; place-items: center; }
.gift-video__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gift-video__body strong { font-size: 14px; font-weight: 800; color: #06141B; }
.gift-video__body small { font-size: 12.5px; line-height: 1.5; color: #4A5C6A; }
.gift-video__body small[hidden] { display: none; }
.gift-video__bar { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: #E4E8E8; overflow: hidden; }
.gift-video__bar[hidden] { display: none; }
.gift-video__bar i { display: block; width: 0; height: 100%; border-radius: 6px; background: #253745; transition: width 0.2s ease; }
.gift-video__acts { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; }
.gift-video__file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.gift-link { border: 0; background: none; padding: 8px; color: #253745; font-size: 14px; font-weight: 800; cursor: pointer; }
.gift-link--muted { color: #4A5C6A; font-weight: 700; }
.gift-link[hidden] { display: none; }

/* «التوقيع على الهدية» */
.gift-radio { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 12px; border: 1px solid #DCE0E0; border-radius: 12px; background: #FFFFFF; font-size: 14.5px; font-weight: 700; color: #06141B; cursor: pointer; }
.gift-radio:has(input:checked) { border: 1.5px solid #253745; background: #F4F6F6; }
.gift-radio input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: #253745; }
.gift-radio__main { flex: 1 1 auto; min-width: 0; }
.gift-radio small { font-size: 12px; font-weight: 500; color: #4A5C6A; }
.gift-custom-name[hidden] { display: none; }

/* «موعد إرسال الهدية» */
.gift-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: #E4E8E8; }
.gift-seg label { position: relative; margin: 0; }
.gift-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gift-seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 6px; border-radius: 10px; color: #253745; font-size: 14px; font-weight: 800; text-align: center; }
.gift-seg input:checked + span { background: #FFFFFF; color: #06141B; box-shadow: 0 1px 4px rgba(6, 20, 27, 0.12); }
.gift-seg input:focus-visible + span { outline: 3px solid rgba(37, 55, 69, 0.35); outline-offset: 1px; }
.gift-seg label.is-off span { opacity: 0.45; }
.gift-seg label.is-off input { cursor: not-allowed; }
/* «تاريخ الإرسال» / «وقت الإرسال»: each list with its own visible label (the app's two fields) */
.gift-when { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.gift-when[hidden] { display: none; }
.gift-when__field { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 2px; border: 1px solid #DCE0E0; border-radius: 12px; background: #FFFFFF; }
.gift-when__field:focus-within { border-color: #253745; }
.gift-when__label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: #4A5C6A; cursor: pointer; }
.gift-when__icon { flex: 0 0 auto; color: #253745; }
.gift-select { display: block; width: 100%; min-width: 0; height: 38px; padding: 0; border: 0; background: transparent; color: #06141B; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.gift-select:focus-visible { outline: 2px solid rgba(37, 55, 69, 0.35); border-radius: 8px; }

/* reminder, lock note */
.gift-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #FFFFFF; color: #253745; font-size: 14px; font-weight: 700; line-height: 1.6; cursor: pointer; }
.gift-check[hidden] { display: none; }
.gift-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #253745; }
.gift-lock { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #E4E8E8; color: #253745; }
.gift-lock svg { flex: 0 0 auto; margin-top: 2px; }
.gift-lock p { margin: 0; font-size: 13px; line-height: 1.6; font-weight: 700; }

/* the summary's row «هدية إلى …» */
.gift-summary { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #FBF1DC; color: #6B4E12; }
.gift-summary[hidden] { display: none; }
.gift-summary__icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: #FFFFFF; display: grid; place-items: center; }
.gift-summary__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gift-summary__body strong { font-size: 15px; font-weight: 800; color: #06141B; overflow-wrap: anywhere; }
.gift-summary__body small { font-size: 12.5px; font-weight: 700; color: #6B4E12; }

@media (max-width: 380px) {
    .gift-card { padding: 8px; }
    .gift-sec { padding: 14px 12px; }
    .gift-video__thumb { width: 52px; height: 52px; }
}
