/* ============================================
   METATAH — AYU SRIYANTI • AYU DIAH • DESIANI
   Design language: Candi Bentar (split gate) motif,
   prada gold-on-temple-red palette.
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ivory: #fcf9f5;
    --ivory-deep: #f3ece3;
    --maroon: #6b4632;
    --maroon-dark: #543626;
    --gold: #c8965a;
    --gold-light: #a67c52;
    --ink: #2b1d16;
    --ink-light: #635147;
    --white: #ffffff;

    --font-display: 'Cormorant Garamond', serif;
    --font-eyebrow: 'Cinzel', serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    font-family: var(--font-display);
    background: var(--ivory);
    background-image:
        radial-gradient(rgba(201, 151, 63, 0.10) 1px, transparent 1.4px);
    background-size: 26px 26px;
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6;
}

body.locked {
    overflow: hidden;
    height: 100vh;
    width: 100%;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: var(--font-display);
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   LAYOUT
============================================ */
.section {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    background: transparent;
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    will-change: transform, opacity;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   GATE (CANDI BENTAR) MOTIF — reusable SVG glyph
============================================ */
.gate-glyph {
    display: block;
    margin: 0 auto;
}

.gate-glyph path,
.gate-glyph rect,
.gate-glyph circle {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.4;
}

.gate-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 22px auto;
    width: 62%;
    opacity: 0.85;
}

.gate-divider::before,
.gate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.gate-divider .gate-dot {
    width: 6px;
    height: 6px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}

/* ============================================
   COVER — CARD WITH GATE-OPEN CONCEPT
============================================ */
.cover {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 26px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(201, 151, 63, 0.10), transparent 55%),
        var(--ivory);
    z-index: 9999;
}

/* floral corner decorations */
.cover-decoration {
    position: absolute;
    width: 230px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.92;
}

.cover-decoration img {
    width: 100%;
    height: auto;
    display: block;
}

.floral-top-right {
    top: -18px;
    right: -34px;
}

.floral-bottom-left {
    bottom: -18px;
    left: -34px;
    transform: rotate(180deg);
}

/* the floating card itself */
.cover-frame {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 28px;
    padding: 42px 26px 34px;
    box-shadow: 0 24px 55px rgba(107, 70, 50, 0.14);
}

.frame-dashed-border {
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(201, 151, 63, 0.45);
    border-radius: 20px;
    pointer-events: none;
}

.cover-crest {
    margin: 0 auto 14px;
    display: block;
}

.scroll-hint {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    animation: bounceHint 2s ease-in-out infinite;
    position: relative;
    z-index: 5;
}

@keyframes bounceHint {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* ---- Full-viewport gate-opening transition (built by JS on click) ---- */
.gate-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    pointer-events: none;
}

.gate-transition-overlay .panel {
    flex: 1;
    background: linear-gradient(160deg, var(--maroon-dark) 0%, var(--maroon) 100%);
    position: relative;
    transition: transform 0.9s var(--ease);
}

.gate-transition-overlay .panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(201, 151, 63, 0.18) 0%, transparent 30%),
        repeating-linear-gradient(0deg, rgba(201, 151, 63, 0.05) 0 2px, transparent 2px 26px);
}

.gate-transition-overlay .panel .panel-crest {
    position: absolute;
    top: 40%;
    width: 46px;
    height: 46px;
}

.gate-transition-overlay .panel.left .panel-crest {
    right: 14px;
}

.gate-transition-overlay .panel.right .panel-crest {
    left: 14px;
}

.gate-transition-overlay .panel .panel-crest svg path {
    fill: var(--gold-light);
    opacity: 0.6;
}

.gate-transition-overlay .panel.left {
    transform-origin: left center;
}

.gate-transition-overlay .panel.right {
    transform-origin: right center;
}

.gate-transition-overlay.opening .panel.left {
    transform: translateX(-100%);
}

.gate-transition-overlay.opening .panel.right {
    transform: translateX(100%);
}

.cover-tag {
    font-family: var(--font-eyebrow);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.cover-title-main {
    font-size: 36px;
    font-weight: 400;
    color: var(--maroon);
    line-height: 1.15;
    margin-bottom: 6px;
}

.cover-names-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 18px 0 16px;
}

.c-name {
    font-size: 25px;
    font-style: italic;
    color: var(--maroon-dark);
    line-height: 1.35;
}

.c-dot {
    font-size: 11px;
    color: var(--gold);
    opacity: 0.7;
    margin: 1px 0;
}

.cover-event-date {
    display: inline-block;
    font-family: var(--font-eyebrow);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--ink-light);
    font-weight: 600;
    border-top: 1px solid rgba(201, 151, 63, 0.35);
    border-bottom: 1px solid rgba(201, 151, 63, 0.35);
    padding: 7px 20px;
    margin-bottom: 26px;
}

.guest-card-box {
    background: var(--ivory);
    border: 1px solid rgba(201, 151, 63, 0.35);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 0 auto 28px;
    position: relative;
}

.guest-label {
    display: block;
    font-size: 12px;
    color: var(--ink-light);
    font-style: italic;
    margin-bottom: 5px;
}

.guest-name {
    font-size: 23px;
    font-weight: 500;
    color: var(--maroon);
}

/* ---- reusable gold corner accents for cards ---- */
.ornate-corners {
    position: relative;
}

.ornate-corners::before,
.ornate-corners::after,
.ornate-corners .corner-tl,
.ornate-corners .corner-br {
    display: none;
}

.ornate-corners::before {
    display: block;
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 8px;
    left: 8px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    opacity: 0.8;
}

.ornate-corners::after {
    display: block;
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    opacity: 0.8;
}

/* ---- decorative seam divider between sections ---- */
.section-seam {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 0;
    position: relative;
    z-index: 2;
}

.section-seam svg {
    display: block;
}

.section-seam .seam-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.55;
}

.btn-open-luxe-v2 {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    font-family: var(--font-eyebrow);
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    padding: 16px 34px;
    box-shadow: 0 10px 25px rgba(107, 70, 50, 0.3);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-open-luxe-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(107, 70, 50, 0.4);
}

@media (max-width: 480px) {
    .cover-decoration {
        width: 170px;
    }

    .cover-frame {
        padding: 36px 20px 28px;
        border-radius: 22px;
    }
}

/* ============================================
   HERO
============================================ */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--maroon-dark) 0%, var(--maroon) 55%, #5c1c17 100%);
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 32%, rgba(201, 151, 63, 0.24), transparent 62%);
    z-index: 1;
    animation: lampBreathe 6s ease-in-out infinite;
}

@keyframes lampBreathe {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

/* faint gate silhouette watermark, echoes the cover's signature motif */
.hero-gate-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    width: 340px;
    max-width: 78vw;
    z-index: 1;
    opacity: 0.14;
    pointer-events: none;
}

.hero-gate-bg path,
.hero-gate-bg circle {
    stroke: var(--gold-light);
    fill: none;
    stroke-width: 1.1;
}

/* drifting gold embers */
.hero-embers {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.ember {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 6px 1px rgba(201, 151, 63, 0.7);
    animation: emberFloat linear infinite;
    opacity: 0;
}

.ember:nth-child(1) {
    left: 12%;
    animation-duration: 9s;
    animation-delay: 0s;
}

.ember:nth-child(2) {
    left: 28%;
    animation-duration: 12s;
    animation-delay: 1.5s;
    width: 3px;
    height: 3px;
}

.ember:nth-child(3) {
    left: 48%;
    animation-duration: 8s;
    animation-delay: 3s;
}

.ember:nth-child(4) {
    left: 64%;
    animation-duration: 11s;
    animation-delay: 0.8s;
    width: 5px;
    height: 5px;
}

.ember:nth-child(5) {
    left: 78%;
    animation-duration: 10s;
    animation-delay: 2.4s;
    width: 3px;
    height: 3px;
}

.ember:nth-child(6) {
    left: 90%;
    animation-duration: 13s;
    animation-delay: 4s;
}

@keyframes emberFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    50% {
        transform: translateY(-52vh) translateX(14px);
        opacity: 0.7;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-92vh) translateX(-10px);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 4;
    color: var(--ivory);
    width: 100%;
    padding: 0 20px;
}

.hero-ornament svg path {
    stroke: var(--gold-light);
}

.hero-ornament svg circle {
    fill: var(--gold-light);
}

.hero-names {
    font-size: 34px;
    font-weight: 300;
    font-style: italic;
    margin: 22px 0;
    line-height: 1.6;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-date {
    display: inline-block;
    font-family: var(--font-eyebrow);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--gold-light);
    padding: 8px 22px;
    border-top: 1px solid rgba(201, 151, 63, 0.4);
    border-bottom: 1px solid rgba(201, 151, 63, 0.4);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 130px;
    z-index: 3;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100%;
}

.hero-wave .wave-layer-2 {
    fill: rgba(251, 246, 236, 0.5);
}

.hero-wave .wave-layer-3 {
    fill: var(--ivory);
}

/* ============================================
   PRAYER
============================================ */
.prayer {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px 26px;
    text-align: center;
}

.om-swastyastu {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--maroon);
    margin-bottom: 30px;
}

.prayer-text {
    max-width: 560px;
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.85;
    color: var(--ink-light);
}

/* ============================================
   SECTION HEADER
============================================ */
.section-header {
    text-align: center;
    margin-bottom: 46px;
}

.section-icon {
    margin: 0 auto 18px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 1px solid rgba(201, 151, 63, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle, rgba(201, 151, 63, 0.06), transparent 70%);
}

.section-icon::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(201, 151, 63, 0.4);
    border-radius: 50%;
}

.section-icon svg {
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--ink);
}

.section-subtitle {
    font-family: var(--font-eyebrow);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 6px;
}

/* ============================================
   FAMILY / DAUGHTERS
============================================ */
.family-section {
    padding: 80px 20px;
    background: var(--ivory-deep);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-floral {
    width: 150px;
    opacity: 0.3;
    z-index: 0;
}

.daughters-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 440px;
    margin: 0 auto;
}

.daughter-arch-card {
    background: linear-gradient(160deg, var(--white) 0%, #faf3e6 100%);
    border-radius: 4px;
    padding: 26px 24px;
    border: 1px solid rgba(201, 151, 63, 0.3);
    position: relative;
    text-align: left;
    box-shadow: 0 6px 18px rgba(107, 70, 50, 0.06);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.daughter-arch-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 12px 26px rgba(107, 70, 50, 0.12);
}

.daughter-arch-card.highlight-card {
    border: 1px solid var(--gold);
    background: linear-gradient(135deg, var(--white) 0%, #fbf1de 100%);
}

.card-top-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-number-badge {
    font-family: var(--font-eyebrow);
    font-size: 22px;
    font-weight: 600;
    color: var(--gold);
    opacity: 0.85;
}

.daughter-role-badge {
    font-family: var(--font-eyebrow);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--maroon);
    text-align: right;
    line-height: 1.4;
    background: rgba(201, 151, 63, 0.12);
    border: 1px solid rgba(201, 151, 63, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
}

.daughter-role-badge small {
    display: block;
    font-size: 9px;
    color: var(--ink-light);
    font-weight: 400;
    letter-spacing: 1px;
}

.daughter-name {
    font-size: 25px;
    font-weight: 400;
    color: var(--maroon-dark);
    line-height: 1.3;
    margin-bottom: 14px;
}

.card-parents-box {
    border-top: 1px dashed rgba(201, 151, 63, 0.4);
    padding-top: 12px;
}

.card-parents-label {
    display: block;
    font-size: 12px;
    color: var(--ink-light);
    font-style: italic;
    margin-bottom: 3px;
}

.card-parents-text {
    font-size: 15px;
    color: var(--ink);
    line-height: 1.4;
}

.card-parents-text .amp {
    color: var(--gold);
    font-weight: 600;
}

/* ============================================
   QUOTE
============================================ */
.quote-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 26px;
    text-align: center;
    background:
        repeating-linear-gradient(135deg, rgba(201, 151, 63, 0.05) 0 2px, transparent 2px 30px),
        var(--maroon);
    position: relative;
    overflow: hidden;
}

.quote-section::before,
.quote-section::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(201, 151, 63, 0.35);
    opacity: 0.7;
}

.quote-section::before {
    top: 24px;
    left: 24px;
    border-right: none;
    border-bottom: none;
}

.quote-section::after {
    bottom: 24px;
    right: 24px;
    border-left: none;
    border-top: none;
}

.quote-petal {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.quote-petal-1 {
    top: 60px;
    right: 40px;
    transform: rotate(35deg);
}

.quote-petal-2 {
    bottom: 70px;
    left: 34px;
    transform: rotate(-25deg);
}

.quote-mark {
    font-size: 70px;
    color: var(--gold-light);
    opacity: 0.4;
    line-height: 0.6;
    margin-bottom: 20px;
    font-family: Georgia, serif;
}

.quote-mark.bottom {
    margin-top: 28px;
    margin-bottom: 0;
    transform: rotate(180deg);
}

.quote-text {
    max-width: 620px;
    font-size: 19px;
    font-style: italic;
    line-height: 1.85;
    color: var(--gold-light);
    margin-bottom: 16px;
}

.quote-source {
    font-family: var(--font-eyebrow);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--ivory);
    opacity: 0.85;
    margin-bottom: 24px;
}

.quote-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 24px auto;
    opacity: 0.6;
}

.quote-translation {
    max-width: 580px;
    font-size: 17px;
    font-style: italic;
    line-height: 1.85;
    color: rgba(251, 246, 236, 0.85);
}

/* ============================================
   EVENT DETAILS
============================================ */
.event-details {
    padding: 80px 18px;
    position: relative;
    overflow: hidden;
}

.dual-event-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 440px;
    margin: 20px auto 34px;
}

.luxe-info-card {
    background: var(--white);
    border-radius: 4px;
    padding: 30px 24px;
    text-align: center;
    border: 1px solid rgba(201, 151, 63, 0.3);
    transition: border-color 0.3s var(--ease);
    position: relative;
}

.luxe-info-card:hover {
    border-color: var(--gold);
}

.card-icon-badge {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}

.card-icon-badge svg {
    transform: rotate(-45deg);
}

.luxe-card-tag {
    font-family: var(--font-eyebrow);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.luxe-card-title {
    font-size: 23px;
    color: var(--maroon-dark);
    font-weight: 400;
    margin-bottom: 6px;
}

.luxe-card-desc {
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.5;
}

.btn-map-luxe {
    background: var(--maroon);
    color: var(--white);
    border: none;
    padding: 12px 22px;
    border-radius: 2px;
    font-family: var(--font-eyebrow);
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s var(--ease);
}

.btn-map-luxe:hover {
    background: var(--maroon-dark);
}

.event-message-box {
    max-width: 420px;
    margin: 0 auto 28px;
    text-align: center;
    padding: 0 10px;
}

.event-message-box p {
    font-size: 16px;
    font-style: italic;
    color: var(--ink-light);
    line-height: 1.8;
}

.event-signature {
    text-align: center;
    margin-top: 30px;
}

.event-signature p {
    font-size: 17px;
    font-style: italic;
    color: var(--ink-light);
    margin: 6px 0;
}

.signature-name {
    color: var(--maroon);
    font-weight: 600;
}

/* ============================================
   COUNTDOWN
============================================ */
.countdown-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 18px 70px;
    background:
        radial-gradient(circle at 50% 20%, rgba(201, 151, 63, 0.12), transparent 60%),
        var(--ivory-deep);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-frame {
    max-width: 480px;
    margin: 0 auto;
    padding: 34px 20px;
    border: 1px dashed rgba(201, 151, 63, 0.5);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
}

.countdown-pills-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 10px;
}

.glass-pill-item {
    background: linear-gradient(160deg, var(--white) 0%, #faf3e6 100%);
    border-radius: 4px;
    padding: 20px 8px;
    text-align: center;
    border: 1px solid var(--gold);
    box-shadow: 0 6px 16px rgba(107, 70, 50, 0.08);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.glass-pill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(107, 70, 50, 0.15);
}

.countdown-number {
    font-family: var(--font-eyebrow);
    font-size: 30px;
    font-weight: 600;
    color: var(--maroon);
    line-height: 1;
    margin-bottom: 6px;
}

.countdown-label {
    font-family: var(--font-eyebrow);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--ink-light);
}

/* ============================================
   FORM SECTIONS
============================================ */
.form-section {
    padding: 80px 18px;
    background: var(--ivory);
    position: relative;
    overflow: hidden;
}

.form-description {
    max-width: 560px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 17px;
    font-style: italic;
    color: var(--ink-light);
    line-height: 1.8;
}

.form-container {
    max-width: 560px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 4px;
    border: 1px solid rgba(201, 151, 63, 0.3);
    position: relative;
}

.form-group {
    margin-bottom: 26px;
    text-align: left;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-light);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    font-family: var(--font-display);
    font-size: 16px;
    padding: 14px;
    border: 1px solid #ded2ba;
    border-radius: 2px;
    background: var(--ivory);
    transition: border-color 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #ded2ba;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.3s var(--ease);
}

.radio-option:hover {
    border-color: var(--gold);
}

.radio-option input {
    width: auto;
    cursor: pointer;
    margin: 0;
}

.btn-submit {
    width: 100%;
    background: var(--maroon);
    color: var(--white);
    font-family: var(--font-eyebrow);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    border: none;
    border-radius: 2px;
    padding: 16px;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--maroon-dark);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* wishes */
.wish-count {
    text-align: center;
    font-family: var(--font-eyebrow);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--maroon);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wish-form input,
.wish-form textarea {
    width: 100%;
    font-family: var(--font-display);
    font-size: 16px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #ded2ba;
    border-radius: 2px;
    background: var(--ivory);
}

.wish-form input:focus,
.wish-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.wishes-list {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 30px;
}

.wish-item {
    padding: 20px 4px;
    border-bottom: 1px solid var(--ivory-deep);
    text-align: left;
}

.wish-author {
    font-size: 17px;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 5px;
}

.wish-time {
    font-size: 12px;
    color: var(--ink-light);
    opacity: 0.7;
    margin-bottom: 10px;
}

.wish-text {
    font-size: 16px;
    color: var(--ink-light);
    line-height: 1.7;
}

/* ============================================
   GIFT
============================================ */
.gift {
    padding: 80px 20px;
    background:
        repeating-linear-gradient(135deg, rgba(201, 151, 63, 0.05) 0 2px, transparent 2px 30px),
        var(--maroon-dark);
    color: var(--ivory);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gift::before,
.gift::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(201, 151, 63, 0.35);
}

.gift::before {
    top: 24px;
    left: 24px;
    border-right: none;
    border-bottom: none;
}

.gift::after {
    bottom: 24px;
    right: 24px;
    border-left: none;
    border-top: none;
}

.gift h2 {
    font-family: var(--font-eyebrow);
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--gold-light);
    margin-bottom: 34px;
}

.bank-info {
    background: var(--ivory);
    color: var(--ink);
    max-width: 480px;
    margin: 0 auto;
    padding: 44px 36px;
    border-radius: 4px;
    border: 1px solid var(--gold);
    position: relative;
}

.bank-logo {
    font-family: var(--font-eyebrow);
    font-size: 15px;
    letter-spacing: 3px;
    color: var(--maroon);
    margin-bottom: 20px;
}

.account-number {
    font-size: 28px;
    font-weight: 500;
    color: var(--maroon-dark);
    letter-spacing: 2px;
    margin: 20px 0;
}

.account-name {
    font-size: 17px;
    color: var(--ink-light);
    line-height: 1.7;
    margin: 12px 0;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    padding: 60px 20px 90px;
    text-align: center;
    background: var(--ivory);
    color: var(--ink-light);
    position: relative;
    overflow: hidden;
}

.footer-thanks {
    font-size: 17px;
    font-style: italic;
    line-height: 1.85;
    margin-bottom: 24px;
}

.footer-names {
    font-size: 21px;
    color: var(--ink);
    margin: 20px 0;
    line-height: 1.8;
}

.footer-names span {
    color: var(--maroon);
    font-weight: 500;
    display: block;
    margin-top: 8px;
}

.footer-credit {
    font-size: 13px;
    color: #a1927e;
    margin-top: 40px;
    line-height: 1.7;
}

.credit-brand {
    color: var(--maroon);
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 151, 63, 0.5);
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.credit-brand:hover {
    color: var(--maroon-dark);
    border-color: var(--gold);
}

/* ============================================
   MUSIC CONTROL
============================================ */
.music-control {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    background: var(--maroon);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 22px rgba(122, 36, 32, 0.35);
    z-index: 1000;
    transition: transform 0.3s var(--ease);
}

.music-control:hover {
    transform: scale(1.1);
}

.music-control.playing {
    animation: pulse 2.4s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* petal (falling frangipani) */
.petal {
    position: fixed;
    top: -20px;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (min-width: 769px) {
    .music-control {
        right: calc((100vw - 480px) / 2 + 28px);
    }
}

@media (max-width: 480px) {
    .cover-title-main {
        font-size: 32px;
    }

    .c-name {
        font-size: 22px;
    }

    .hero-names {
        font-size: 28px;
    }

    .daughter-name {
        font-size: 22px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .om-swastyastu {
        font-size: 25px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .quote-text,
    .quote-translation {
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .countdown-pills-row {
        gap: 8px;
    }

    .glass-pill-item {
        padding: 16px 4px;
    }

    .countdown-number {
        font-size: 21px;
    }
}