/* ==========================================================
   V-VELAN Waitlist — style.css
   Pixel-faithful recreation of the approved reference design.
   ========================================================== */

/* ---------- Custom Properties ---------- */
:root {
    --cream:            #FAF6F0;
    --cream-warm:       #F5F0E8;
    --white:            #FFFFFF;
    --gold:             #C8A35F;
    --gold-light:       #D4B06A;
    --gold-dark:        #A07A3A;
    --dark-brown:       #2C1E10;
    --footer-bg:        #1C1408;
    --near-black:       #1A1A1A;
    --text-dark:        #333333;
    --text-grey:        #5C5C5C;
    --text-light-grey:  #999999;
    --placeholder:      #A09888;
    --input-border:     #DDD5C8;
    --error-red:        #C0392B;
    --font-heading:     'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--near-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img {
    display: block;
}

/* ==========================================================
   SECTION 1 — HEADER
   ========================================================== */
#header {
    background-color: var(--cream);
    text-align: center;
    padding: 10px 16px 0;
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 8px;
}

.logo {
    height: 44px;
    width: auto;
}

.header-gold-line {
    height: 2px;
    background-color: var(--gold);
}

/* ==========================================================
   SECTION 2 — HERO
   ========================================================== */
.hero {
    width: 100%;
    line-height: 0;
    font-size: 0;
}

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

/* ==========================================================
   SECTION 3 — FORM CARD
   ========================================================== */
.form-section {
    background-color: var(--cream);
    padding: 24px 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 28px 22px 24px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* ---- Peacock ornament divider ---- */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.ornament-line {
    flex: 1;
    max-width: 100px;
    height: 1.5px;
    background-color: var(--gold);
}

.peacock-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ---- Heading ---- */
#heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 30px;
    color: var(--near-black);
    text-align: center;
    line-height: 1.25;
    margin-bottom: 6px;
}

/* ---- Heading sub-divider ---- */
.heading-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.divider-line {
    width: 30px;
    height: 1.5px;
    background-color: var(--gold);
}

.divider-diamond {
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ---- Description ---- */
.form-description {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-grey);
    text-align: center;
    line-height: 1.65;
    margin-bottom: 22px;
    padding: 0 4px;
}

/* ---- Form layout ---- */
#waitlist-form {
    display: flex;
    flex-direction: column;
}

/* ---- Input groups ---- */
.input-group {
    margin-bottom: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--near-black);
    background-color: var(--white);
    border: 1.5px solid var(--input-border);
    border-radius: 10px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: var(--placeholder);
    font-weight: 400;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--gold);
}

/* Textarea specific */
.textarea-wrapper {
    align-items: flex-start;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 88px;
    line-height: 1.5;
}

/* ---- Error states ---- */
.input-wrapper.has-error input,
.input-wrapper.has-error textarea {
    border-color: var(--error-red);
}

.error-message {
    font-size: 12px;
    color: var(--error-red);
    margin-top: 4px;
    padding-left: 4px;
    line-height: 1.4;
}

.error-message:empty {
    display: none;
}

#contact-error {
    margin-bottom: 6px;
}

/* ---- Submit button ---- */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background-color: var(--dark-brown);
    color: var(--gold);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
    margin-top: 6px;
}

.submit-btn:hover {
    opacity: 0.92;
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ---- Privacy line ---- */
.privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-grey);
}

.privacy-icon {
    color: var(--text-grey);
    flex-shrink: 0;
}

/* ---- Success message ---- */
.success-message {
    display: none;
    text-align: center;
    padding: 22px 16px;
    margin-top: 20px;
    background-color: #FDFBF5;
    border: 1.5px solid var(--gold);
    border-radius: 12px;
}

.success-message.visible {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
    color: var(--near-black);
    margin-bottom: 8px;
    line-height: 1.3;
}

.success-body {
    font-size: 14px;
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   SECTION 4 — FEATURES
   ========================================================== */
.features {
    background-color: var(--cream-warm);
    padding: 20px 12px;
}

.features-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
}

.feature {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
}

.feature:not(:last-child) {
    border-right: 1px solid var(--input-border);
}

.feature-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
}

.feature-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-grey);
    line-height: 1.45;
}

/* ==========================================================
   SECTION 5 — FOOTER
   ========================================================== */
#footer {
    background-color: var(--footer-bg);
    border-radius: 20px 20px 0 0;
    padding: 24px 24px 32px;
    text-align: center;
}

.footer-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 0.85;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: block;
}

/* ==========================================================
   RESPONSIVE — TABLET (≥ 768px)
   ========================================================== */
@media (min-width: 768px) {
    #header {
        padding: 14px 32px 0;
    }

    .header-inner {
        padding-bottom: 10px;
    }

    .logo {
        height: 58px;
        width: auto;
    }

    .form-section {
        padding: 32px 24px 12px;
    }

    .form-card {
        padding: 36px 36px 32px;
    }

    .peacock-icon {
        width: 52px;
        height: 52px;
    }

    .ornament-line {
        max-width: 130px;
    }

    #heading {
        font-size: 36px;
    }

    .divider-line {
        width: 36px;
    }

    .form-description {
        font-size: 15px;
        margin-bottom: 26px;
    }

    .input-group {
        margin-bottom: 16px;
    }

    .input-wrapper input,
    .input-wrapper textarea {
        font-size: 15px;
        padding: 15px 16px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 15px 28px;
    }

    .features {
        padding: 24px 20px;
    }

    .feature {
        padding: 12px 10px;
    }

    .feature-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 12px;
    }

    .feature-label {
        font-size: 13px;
    }

    #footer {
        padding: 28px 32px 36px;
    }

    .footer-title {
        font-size: 14px;
        letter-spacing: 4px;
        margin-bottom: 20px;
    }

    .social-icons {
        gap: 36px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
    }
}

/* ==========================================================
   RESPONSIVE — DESKTOP (≥ 1024px)
   ========================================================== */
@media (min-width: 1024px) {
    #header {
        padding: 16px 48px 0;
    }

    .logo {
        height: 66px;
        width: auto;
    }

    .form-section {
        padding: 36px 32px 16px;
    }

    .form-card {
        max-width: 560px;
        padding: 40px 44px 36px;
    }

    .peacock-icon {
        width: 56px;
        height: 56px;
    }

    .ornament-line {
        max-width: 150px;
    }

    #heading {
        font-size: 40px;
    }

    .form-description {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .features-row {
        max-width: 580px;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .footer-title {
        font-size: 15px;
    }

    .social-icons {
        gap: 44px;
    }
}
