/* ==========================================================================

   Gift AddOn Promotional Landing Page - Reference-Matched Ultra Premium

   AddOn Finance Indonesia

   ========================================================================== */



:root {

    --gift-navy: #152542;

    --gift-navy-dark: #0c1829;

    --gift-amber: #c48039;

    --gift-amber-light: #e0984f;

    --gift-amber-gradient: linear-gradient(135deg, #c48039 0%, #e0984f 100%);

    --gift-bg: #fafafb;

    --gift-card-bg: #ffffff;

    --gift-border: #e8ecf2;

    --gift-text-main: #111827;

    --gift-text-muted: #6b7280;

    --gift-radius-card: 28px;

    --gift-radius-inner: 20px;

    --gift-shadow-card: 0 30px 70px -15px rgba(21, 37, 66, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);

}



.gift-ref-page {

    position: relative;

    background-color: var(--gift-bg);

    color: var(--gift-text-main);

    overflow: hidden;

    padding: clamp(80px, 6.5vw, 95px) 0 4rem;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

}



/* Background Decorative Rings / Geometry from Reference */

.gift-ref-ring {

    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(228, 134, 54, 0.08);

    pointer-events: none;

    z-index: 0;

}

.gift-ref-ring--1 {

    width: 600px;

    height: 600px;

    right: -100px;

    top: -100px;

    border-color: rgba(228, 134, 54, 0.12);

}

.gift-ref-ring--2 {

    width: 440px;

    height: 440px;

    right: -20px;

    top: -20px;

    border-color: rgba(54, 90, 153, 0.08);

}

.gift-ref-ring--3 {

    width: 720px;

    height: 720px;

    left: -200px;

    bottom: -150px;

    border-color: rgba(228, 134, 54, 0.07);

}



.gift-ref-glow {

    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    pointer-events: none;

    z-index: 0;

}

.gift-ref-glow--amber {

    width: 450px;

    height: 450px;

    left: -100px;

    top: 50px;

    background: radial-gradient(circle, rgba(224, 152, 79, 0.16) 0%, transparent 70%);

}

.gift-ref-glow--blue {

    width: 500px;

    height: 500px;

    right: -100px;

    top: 100px;

    background: radial-gradient(circle, rgba(54, 90, 153, 0.12) 0%, transparent 70%);

}



.gift-ref-container {

    position: relative;

    z-index: 1;

    max-width: 1240px;

    margin: 0 auto;

}



/* ==========================================================================

   Top Header Title Section

   ========================================================================== */

.gift-hero-top-header {

    max-width: 960px;

    margin: 0.25rem auto clamp(1rem, 2vw, 1.5rem);

    text-align: center;

}



.gift-ref-heading {

    font-size: clamp(2.2rem, 4vw, 3.5rem);

    font-weight: 900;

    line-height: 1.15;

    letter-spacing: -0.035em;

    color: #111827;

    margin-bottom: 0;

}

.gift-ref-heading .amber-accent {

    color: var(--gift-amber);

    display: inline;

}



/* ==========================================================================

   Main Split Layout: Left Video (9:16) & Right Form Card (Equal Height & Harmonized)

   ========================================================================== */

.gift-main-split-grid {

    display: grid;

    grid-template-columns: minmax(360px, 450px) minmax(0, 1fr);

    gap: clamp(1.75rem, 3.5vw, 3rem);

    align-items: stretch; /* Ensure both columns stretch to the EXACT same bottom line */

    max-width: 1260px;

    margin: 0 auto;

    scroll-margin-top: 90px;

}



.gift-split-video-col {

    display: flex;

    flex-direction: column;

    width: 100%;

    height: 100%;

}



.gift-split-video-col .gift-ref-card-frame {

    background: #ffffff;

    border: 1px solid rgba(226, 232, 240, 0.95);

    border-radius: var(--gift-radius-card);

    padding: clamp(1.25rem, 1.8vw, 1.65rem);

    box-shadow: var(--gift-shadow-card);

    position: relative;

    max-width: 450px;

    width: 100%;

    margin: 0 auto;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.gift-split-video-col .gift-ref-card-frame::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 4px;

    background: var(--gift-amber-gradient);

}

.gift-split-video-col .gift-ref-card-frame:hover {

    transform: translateY(-4px);

    box-shadow: 0 35px 80px -15px rgba(21, 37, 66, 0.16);

}



.gift-split-form-col {

    display: flex;

    flex-direction: column;

    width: 100%;

    height: 100%;

}



.gift-split-form-col .gift-ref-form-card {

    background: #ffffff;

    border: 1px solid rgba(226, 232, 240, 0.95);

    border-radius: var(--gift-radius-card);

    padding: clamp(1.5rem, 2.5vw, 2.35rem);

    box-shadow: var(--gift-shadow-card);

    position: relative;

    overflow: hidden;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}

.gift-split-form-col .gift-ref-form-card::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 4px;

    background: var(--gift-amber-gradient);

}



.gift-split-form-col form[data-gift-form] {

    display: flex;

    flex-direction: column;

    flex: 1 1 auto;

    justify-content: space-between;

}



@media (max-width: 991.98px) {

    .gift-main-split-grid {

        grid-template-columns: 1fr;

        gap: 2.5rem;

    }

    .gift-split-video-col {

        position: static;

        max-width: 360px;

        margin: 0 auto;

        height: auto;

    }

    .gift-split-video-col .gift-ref-card-frame {

        height: auto;

    }

    .gift-split-form-col {

        height: auto;

    }

    .gift-split-form-col .gift-ref-form-card {

        height: auto;

        padding: clamp(1.5rem, 3vw, 2rem);

    }

}



.gift-ref-card-topbar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 1rem;

    padding: 0 0.25rem;

    flex-shrink: 0;

}

.gift-ref-campaign-tag {

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: none !important;

    color: #b56e29;

    margin-bottom: 0.2rem;

}

.gift-ref-campaign-title {

    font-size: 1.08rem;

    font-weight: 800;

    color: #111827;

    margin: 0;

    letter-spacing: -0.02em;

}



.gift-ref-live-pill {

    display: inline-flex;

    align-items: center;

    gap: 0.45rem;

    padding: 0.28rem 0.8rem;

    border-radius: 9999px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    color: #374151;

    font-size: 0.7rem;

    font-weight: 800;

    letter-spacing: 0.06em;

    text-transform: none !important;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

}

.gift-ref-live-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--gift-amber);

    box-shadow: 0 0 0 0 rgba(196, 128, 57, 0.7);

    animation: gift-ref-pulse 1.8s infinite;

}

@keyframes gift-ref-pulse {

    0% { box-shadow: 0 0 0 0 rgba(196, 128, 57, 0.7); }

    70% { box-shadow: 0 0 0 7px rgba(196, 128, 57, 0); }

    100% { box-shadow: 0 0 0 0 rgba(196, 128, 57, 0); }

}



/* Video Player Viewport - Fills vertical height of card uniformly */

.gift-ref-video-viewport {

    position: relative;

    width: 100%;

    flex: 1 1 auto;

    min-height: 420px;

    background: #000000;

    border-radius: var(--gift-radius-inner);

    overflow: hidden;

    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.08);

}



.gift-ref-video-media {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    object-fit: cover !important;

    object-position: center;

    display: block;

    background: #000000;

}



.gift-ref-card-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 1.15rem;

    padding: 0 0.25rem;

    flex-shrink: 0;

}

.gift-ref-footer-brand {

    font-size: 0.74rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: none !important;

    color: #9ca3af;

}

.gift-ref-footer-year {

    font-size: 0.72rem;

    font-weight: 700;

    color: #9ca3af;

    letter-spacing: 0.06em;

}



.gift-ref-video-badge-pill {

    position: absolute;

    bottom: 1.15rem;

    left: 1.15rem;

    z-index: 4;

    display: inline-flex;

    align-items: center;

    gap: 0.45rem;

    background: rgba(15, 23, 42, 0.75);

    backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.15);

    color: #ffffff;

    font-size: 0.78rem;

    font-weight: 700;

    padding: 0.35rem 0.95rem;

    border-radius: 9999px;

}

.gift-ref-video-badge-pill i {

    color: var(--gift-amber-light);

}



.gift-ref-video-audio-btn {

    position: absolute;

    bottom: 1.15rem;

    right: 1.15rem;

    z-index: 4;

    background: rgba(15, 23, 42, 0.75);

    backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.18);

    color: #ffffff;

    font-size: 0.75rem;

    font-weight: 700;

    padding: 0.35rem 0.85rem;

    border-radius: 9999px;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 0.4rem;

    transition: all 0.2s ease;

}

.gift-ref-video-audio-btn:hover {

    background: var(--gift-amber);

    color: #ffffff;

}







.gift-ref-form-prompt {

    background: linear-gradient(135deg, rgba(224, 152, 79, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);

    border-left: 4px solid var(--gift-amber);

    padding: 1.15rem 1.4rem;

    border-radius: 0 14px 14px 0;

    margin-bottom: 2rem;

}

.gift-ref-form-prompt p {

    font-size: 1.05rem;

    font-weight: 800;

    color: #853704;

    margin: 0;

    line-height: 1.55;

    display: flex;

    align-items: flex-start;

    gap: 0.65rem;

}

.gift-ref-form-prompt i {

    color: var(--gift-amber);

    font-size: 1.35rem;

    flex-shrink: 0;

    margin-top: 0.05rem;

}



/* Input Fields */

.gift-ref-form-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1.25rem;

    margin-bottom: 1.5rem;

}

.gift-ref-field {

    display: flex;

    flex-direction: column;

}

.gift-ref-field--full {

    grid-column: 1 / -1;

}



.gift-ref-label {

    font-size: 0.85rem;

    font-weight: 700;

    color: #374151;

    margin-bottom: 0.45rem;

}

.gift-ref-label span.req {

    color: #ef4444;

    font-weight: 800;

}



.gift-ref-input-wrap {

    position: relative;

    display: flex;

    align-items: center;

}

.gift-ref-input-wrap i {

    position: absolute;

    left: 1rem;

    color: #9ca3af;

    font-size: 1.05rem;

    pointer-events: none;

    transition: color 0.2s ease;

}

.gift-ref-input {

    width: 100%;

    padding: 0.85rem 1rem 0.85rem 2.85rem;

    background: #f9fafb;

    border: 1px solid #d1d5db;

    border-radius: 12px;

    font-size: 0.95rem;

    color: #111827;

    outline: none;

    transition: all 0.2s ease;

}

.gift-ref-input:focus {

    background: #ffffff;

    border-color: var(--gift-amber);

    box-shadow: 0 0 0 4px rgba(196, 128, 57, 0.15);

}

.gift-ref-input:focus + i,

.gift-ref-input-wrap:focus-within i {

    color: var(--gift-amber);

}



.gift-ref-input.is-invalid {

    border-color: #ef4444 !important;

    background: #fff8f8 !important;

    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;

}

.gift-ref-err {

    color: #dc2626;

    font-size: 0.78rem;

    font-weight: 600;

    margin-top: 0.35rem;

    display: flex;

    align-items: center;

    gap: 0.35rem;

}

.gift-ref-hint {

    color: #9ca3af;

    font-size: 0.75rem;

    margin-top: 0.35rem;

}



/* Submit Button */

.gift-ref-btn-submit {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.65rem;

    width: 100%;

    padding: 1.1rem 2rem;

    border: 0;

    border-radius: 14px;

    background: var(--gift-amber-gradient);

    color: #ffffff;

    font-size: 1.05rem;

    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 14px 30px rgba(196, 128, 57, 0.35);

    transition: all 0.25s ease;

}

.gift-ref-btn-submit:hover {

    transform: translateY(-2px);

    box-shadow: 0 18px 36px rgba(196, 128, 57, 0.45);

}

.gift-ref-btn-submit:disabled {

    opacity: 0.75;

    cursor: not-allowed;

    transform: none !important;

}



.gift-ref-privacy-note {

    text-align: center;

    margin-top: 1.25rem;

    color: #6b7280;

    font-size: 0.78rem;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.45rem;

}

.gift-ref-privacy-note i {

    color: #10b981;

}



/* Alerts */

.gift-ref-alert {

    padding: 1rem 1.25rem;

    border-radius: 12px;

    margin-bottom: 1.5rem;

    font-size: 0.9rem;

    display: flex;

    gap: 0.75rem;

    align-items: flex-start;

}

.gift-ref-alert--success {

    background: #ecfdf5;

    color: #065f46;

    border: 1px solid #a7f3d0;

}

.gift-ref-alert--error {

    background: #fef2f2;

    color: #991b1b;

    border: 1px solid #fecaca;

}



/* Responsive */

@media (max-width: 991.98px) {

    .gift-ref-hero-grid {

        grid-template-columns: 1fr;

        gap: 2.75rem;

    }

    .gift-ref-copy {

        max-width: 100%;

        text-align: center;

    }

    .gift-ref-action-row {

        justify-content: center;

    }

    .gift-ref-trust-note {

        text-align: left;

    }

}

@media (max-width: 575.98px) {

    .gift-ref-heading {

        font-size: 2.2rem;

    }

    .gift-ref-form-grid {

        grid-template-columns: 1fr;

    }

    .gift-ref-form-card {

        padding: 1.5rem 1.15rem;

    }

}


/* ==========================================================================
   Quiz Section Styling inside Gift Form
   ========================================================================== */
.gift-quiz-divider {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px dashed #e2e8f0;
}
.gift-quiz-header {
    margin-bottom: 0.75rem;
}
.gift-quiz-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    margin-bottom: 0.4rem;
}
.gift-quiz-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}
.gift-ref-textarea-wrap {
    position: relative;
    width: 100%;
}
.gift-ref-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.92rem;
    color: #111827;
    outline: none;
    min-height: 72px;
    resize: vertical;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.5;
}
.gift-ref-textarea:focus {
    background: #ffffff;
    border-color: var(--gift-amber);
    box-shadow: 0 0 0 4px rgba(196, 128, 57, 0.15);
}
.gift-ref-textarea.is-invalid {
    border-color: #ef4444 !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
