
/* =====================================================
   REPLY SECTION - PARENT SCOPED CSS
===================================================== */

.reply-section {
    --astro-maroon: #6e2510;
    --astro-rust: #b04a1a;
    --astro-gold: #d9a441;
    --astro-cream: #fff9f2;
    --astro-text: #4f4239;
    --astro-heading: #57200f;
    --astro-muted: #88776b;
    --astro-border: #eee1d5;
    --astro-white: #ffffff;
    --astro-shadow: 0 4px 15px rgba(85, 43, 22, 0.07);

    padding: 24px 12px;
    font-family: Arial, Helvetica, sans-serif;
}


/* BOX SIZING */

.reply-section *,
.reply-section *::before,
.reply-section *::after {
    box-sizing: border-box;
}


/* =====================================================
   REPLY CONTAINER
===================================================== */

.reply-section .reply-container {
    margin: 0 auto;
    padding: 22px 24px 24px;
    background: var(--astro-cream);
    border: 1px solid var(--astro-border);
    border-top: 4px solid var(--astro-gold);
    border-radius: 12px;
    box-shadow: var(--astro-shadow);
}


/* =====================================================
   HEADER
===================================================== */

.reply-section .reply-header {
    margin-bottom: 16px;
}

.reply-section .reply-header h2 {
    margin: 0 0 3px;
    color: var(--astro-heading);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.reply-section .reply-header p {
    margin: 0;
    color: var(--astro-muted);
    font-size: 13px;
}


/* =====================================================
   FORM FIELDS
===================================================== */

.reply-section .reply-field {
    margin-bottom: 13px;
}

.reply-section .reply-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--astro-heading);
    font-size: 13px;
    font-weight: 600;
}

.reply-section .reply-field input,
.reply-section .reply-field textarea {
    display: block;
    width: 100%;
    padding: 9px 12px;
    color: var(--astro-text);
    background: var(--astro-white);
    border: 1px solid var(--astro-border);
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.reply-section .reply-field input::placeholder,
.reply-section .reply-field textarea::placeholder {
    color: var(--astro-muted);
    opacity: .75;
}

.reply-section .reply-field input:focus,
.reply-section .reply-field textarea:focus {
    border-color: var(--astro-rust);
    box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.28);
}

.reply-section .reply-field textarea {
    min-height: 96px;
    resize: vertical;
}


/* =====================================================
   CAPTCHA + SUBMIT
===================================================== */

.reply-section .reply-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reply-section .captcha-image {
    display: block;
    height: 40px;
    max-width: 100%;
    padding: 3px;
    background: var(--astro-white);
    border: 1px solid var(--astro-border);
    border-radius: 8px;
}

.reply-section .captcha-input {
    flex: 1 1 130px;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    color: var(--astro-text);
    background: var(--astro-white);
    border: 1px solid var(--astro-border);
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.reply-section .captcha-input::placeholder {
    color: var(--astro-muted);
    opacity: .75;
}

.reply-section .captcha-input:focus {
    border-color: var(--astro-rust);
    box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.28);
}


/* =====================================================
   SUBMIT BUTTON
===================================================== */

.reply-section .reply-submit {
    height: 40px;
    padding: 0 22px;
    color: var(--astro-white);
    background: linear-gradient(135deg, var(--astro-maroon), var(--astro-rust));
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.reply-section .reply-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(110, 37, 16, 0.25);
    filter: brightness(1.06);
}

.reply-section .reply-submit:focus-visible {
    outline: 3px solid var(--astro-gold);
    outline-offset: 2px;
}


/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width: 480px) {

    .reply-section .reply-container {
        padding: 18px 16px 20px;
    }

    .reply-section .reply-header h2 {
        font-size: 19px;
    }

    .reply-section .reply-submit {
        width: 100%;
    }
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .reply-section .reply-submit,
    .reply-section .reply-field input,
    .reply-section .reply-field textarea,
    .reply-section .captcha-input {
        transition: none;
    }

    .reply-section .reply-submit:hover {
        transform: none;
    }
}
