/* ===== Gift page — sage & blush, matches site design ===== */

.gift-page {
    --gp-sage: #A8B8A0;
    --gp-sage-dark: #7D9074;
    --gp-pink: #D7B4B4;
    --gp-pink-light: #E8D7D7;
    --gp-cream: #FAF8F4;
    --gp-text: #2A2A2A;
    --gp-muted: rgba(42, 42, 42, 0.62);
    --gp-border: rgba(42, 42, 42, 0.1);
    --gp-radius: 16px;
    --gp-radius-sm: 10px;
    --gp-shadow: 0 16px 48px rgba(42, 42, 42, 0.07);
    --gp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(168, 184, 160, 0.12), transparent 55%),
        radial-gradient(ellipse 70% 45% at 100% 100%, rgba(215, 180, 180, 0.14), transparent 50%),
        linear-gradient(180deg, var(--gp-cream) 0%, #F5F1EB 100%);
    padding: clamp(0.85rem, 2vw, 1.75rem) 0 clamp(2rem, 4vw, 3.5rem);
    min-height: 60vh;
}

.gift-page .container {
    max-width: 1080px;
}

/* Breadcrumb */
.gift-breadcrumb {
    margin-bottom: 1rem;
}

.gift-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
    color: var(--gp-muted);
}

.gift-breadcrumb__list a {
    color: var(--gp-sage-dark);
    text-decoration: none;
    font-weight: 500;
}

.gift-breadcrumb__list a:hover {
    color: var(--gp-text);
    text-decoration: underline;
}

.gift-breadcrumb__sep {
    opacity: 0.45;
}

.gift-breadcrumb__current {
    color: var(--gp-text);
    font-weight: 600;
}

/* Intro panel */
.gift-intro {
    position: relative;
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: calc(var(--gp-radius) + 2px);
    box-shadow: var(--gp-shadow);
}

@media (min-width: 992px) {
    .gift-intro {
        position: sticky;
        top: 92px;
    }
}

.gift-intro__eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gp-sage-dark);
    background: rgba(168, 184, 160, 0.22);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

html[lang="he"] body .gift-intro__title,
html[lang="ar"] body .gift-intro__title {
    font-family: "Frank Ruhl Libre", "Heebo", serif !important;
}

.gift-intro__title {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 600;
    color: var(--gp-text);
    line-height: 1.22;
    margin: 0 0 0.75rem;
}

.gift-intro__subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--gp-muted);
    margin: 0 0 1.25rem;
}

.gift-intro__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.gift-intro__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gp-text);
    padding: 0.55rem 0.65rem;
    background: rgba(168, 184, 160, 0.1);
    border-radius: var(--gp-radius-sm);
    border: 1px solid rgba(168, 184, 160, 0.2);
}

.gift-intro__benefits i {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--gp-sage-dark);
    margin-top: 0.1rem;
}

.gift-intro__visual {
    margin-top: 1.25rem;
    border-radius: var(--gp-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 2px solid rgba(168, 184, 160, 0.35);
    box-shadow: 0 8px 24px rgba(42, 42, 42, 0.08);
}

.gift-intro__visual--decor {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 50%),
        linear-gradient(145deg, var(--gp-pink-light) 0%, rgba(168, 184, 160, 0.45) 100%);
}

.gift-intro__visual-icon {
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(125, 144, 116, 0.55);
    text-shadow: 0 4px 16px rgba(255, 255, 255, 0.6);
}

.gift-intro__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Form card */
.gift-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: calc(var(--gp-radius) + 2px);
    box-shadow: var(--gp-shadow);
    padding: clamp(1rem, 2.5vw, 1.75rem);
}

.gift-card--success {
    padding: clamp(1.75rem, 4vw, 2.5rem);
}

.gift-section {
    margin-bottom: 1.35rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gp-border);
}

.gift-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gift-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gp-text);
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--gp-sage), var(--gp-pink)) 1;
}

.gift-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--gp-sage);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.gift-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gp-text);
    margin-bottom: 0.35rem;
    display: block;
}

.gift-input {
    border-radius: var(--gp-radius-sm) !important;
    border: 1.5px solid var(--gp-border) !important;
    font-size: 0.92rem !important;
    padding: 0.55rem 0.75rem !important;
    transition: border-color var(--gp-transition), box-shadow var(--gp-transition) !important;
}

.gift-input:focus {
    border-color: var(--gp-sage) !important;
    box-shadow: 0 0 0 3px rgba(168, 184, 160, 0.22) !important;
}

/* Amount chips */
.gift-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.gift-amount-option {
    cursor: pointer;
    margin: 0;
}

.gift-amount-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gift-amount-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.5rem;
    border: 1.5px solid var(--gp-border);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--gp-text);
    background: #fff;
    transition: all var(--gp-transition);
}

.gift-amount-option:hover span {
    border-color: var(--gp-pink);
    background: var(--gp-pink-light);
}

.gift-amount-option input:checked + span,
.gift-amount-option.is-selected span {
    border-color: var(--gp-sage);
    background: rgba(168, 184, 160, 0.28);
    color: var(--gp-sage-dark);
    box-shadow: 0 4px 14px rgba(125, 144, 116, 0.22);
}

.gift-custom-amount {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(232, 215, 215, 0.25);
    border-radius: var(--gp-radius-sm);
    border: 1px solid rgba(215, 180, 180, 0.35);
}

/* Send mode cards */
.gift-send-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.gift-send-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    padding: 1rem 0.75rem;
    margin: 0;
    cursor: pointer;
    border: 1.5px solid var(--gp-border);
    border-radius: var(--gp-radius-sm);
    background: #fff;
    transition: all var(--gp-transition);
}

.gift-send-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gift-send-card__icon {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--gp-pink);
    margin-bottom: 0.15rem;
}

.gift-send-card__title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--gp-text);
}

.gift-send-card__hint {
    font-size: 0.72rem;
    color: var(--gp-muted);
}

.gift-send-card.is-selected,
.gift-send-card:has(input:checked) {
    border-color: var(--gp-sage);
    background: linear-gradient(135deg, rgba(232, 215, 215, 0.35) 0%, rgba(168, 184, 160, 0.18) 100%);
    box-shadow: 0 6px 18px rgba(125, 144, 116, 0.18);
}

.gift-send-card.is-selected .gift-send-card__icon,
.gift-send-card:has(input:checked) .gift-send-card__icon {
    color: var(--gp-sage-dark);
}

.gift-scheduled-wrap {
    display: none;
    margin-top: 0.85rem;
    padding: 0.85rem;
    background: rgba(168, 184, 160, 0.1);
    border: 1.5px solid rgba(168, 184, 160, 0.3);
    border-radius: var(--gp-radius-sm);
}

.gift-scheduled-wrap.is-open {
    display: block;
}

.gift-datetime-input {
    font-size: 0.95rem !important;
}

.gift-scheduled-hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: var(--gp-muted);
}

/* Submit */
.gift-submit {
    margin-top: 1.25rem;
    width: 100%;
    min-height: 48px;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    background: var(--gp-sage) !important;
    border-color: var(--gp-sage) !important;
    color: #fff !important;
    border-radius: var(--gp-radius-sm) !important;
    box-shadow: 0 8px 22px rgba(125, 144, 116, 0.3);
    transition: background var(--gp-transition), transform var(--gp-transition), box-shadow var(--gp-transition);
}

.gift-submit:hover {
    background: var(--gp-sage-dark) !important;
    border-color: var(--gp-sage-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(125, 144, 116, 0.35);
}

/* Confirmation & redeem shared */
.gift-hero__title {
    font-family: "Frank Ruhl Libre", "Heebo", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gp-text);
    margin: 0 0 0.65rem;
}

.gift-hero__subtitle {
    font-size: 0.95rem;
    color: var(--gp-muted);
    line-height: 1.6;
    max-width: 36rem;
    margin: 0 auto 1rem;
}

.gift-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gp-sage) 0%, var(--gp-pink) 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(125, 144, 116, 0.3);
}

.gift-summary-box {
    background: rgba(168, 184, 160, 0.1);
    border: 1px solid rgba(168, 184, 160, 0.25);
    border-radius: var(--gp-radius-sm);
    padding: 1rem 1.15rem;
    margin-top: 1rem;
}

.gift-summary-box p {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
}

.gift-summary-box p:last-child {
    margin-bottom: 0;
}

.gift-balance-pill {
    background: linear-gradient(135deg, var(--gp-sage) 0%, var(--gp-pink) 100%);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--gp-radius-sm);
    text-align: center;
    box-shadow: 0 6px 20px rgba(125, 144, 116, 0.28);
}

.gift-message-quote {
    border-inline-start: 3px solid var(--gp-pink);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: rgba(232, 215, 215, 0.35);
    border-radius: 0 var(--gp-radius-sm) var(--gp-radius-sm) 0;
    font-style: italic;
    color: var(--gp-text);
}

.gift-product-card {
    border-radius: var(--gp-radius-sm);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gp-border);
    transition: transform var(--gp-transition), box-shadow var(--gp-transition);
    height: 100%;
}

.gift-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(42, 42, 42, 0.08);
}

@media (max-width: 575.98px) {
    .gift-amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gift-send-grid {
        grid-template-columns: 1fr;
    }

    .gift-intro__visual {
        display: none;
    }
}
