
/* =========================================================
   JCM — REPORT A BUG
========================================================= */

main:has(.feedback-page) {
    background: #f5f5f5;
}

/* =========================================================
   PAGE CONTAINER
========================================================= */

.feedback-page {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 64px;
    background: #f5f5f5;
    color: #171717;
    font-family: "Inter", sans-serif;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.feedback-page *,
.feedback-page *::before,
.feedback-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   HERO
========================================================= */

.feedback-page .contact-header {
    width: min(1200px, calc(100% - 48px));
    max-width: 100%;
    margin: 0 auto 48px;
    padding: 32px 0 0;
    text-align: center;
}

.feedback-brand {
    max-width: 900px;
    margin: 0 auto 32px;
    color: #444;
    font-family: "Instrument Serif", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

.feedback-page .contact-title {
    max-width: 900px;
    margin: 0 auto;
    color: #171717;
    font-family: "Inter", sans-serif;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
    transform: scaleY(1.125);
    transform-origin: center;
}

.feedback-page .contact-intro {
    max-width: 700px;
    margin: 24px auto 0;
    color: #666;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
}

/* =========================================================
   FORM CONTAINER
========================================================= */

.feedback-form-section {
    width: min(1200px, calc(100% - 48px));
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 60px 48px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.feedback-form-inner {
    width: 100%;
    max-width: 760px;
    min-width: 0;
    margin: 0 auto;
}

/* =========================================================
   FORM
========================================================= */

.feedback-page .feedback-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* =========================================================
   FORM GRID
========================================================= */

.feedback-page .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* =========================================================
   FIELDS
========================================================= */

.feedback-page .contact-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.feedback-page .contact-field label {
    display: block;
    margin: 0;
    color: #171717;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

/* =========================================================
   INPUTS
========================================================= */

.feedback-page .contact-field input,
.feedback-page .contact-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    background: #fff;
    color: #171717;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.feedback-page .contact-field input {
    height: 48px;
}

.feedback-page .contact-field textarea {
    min-height: 190px;
    resize: vertical;
}

.feedback-page .contact-field input::placeholder,
.feedback-page .contact-field textarea::placeholder {
    color: #999;
    opacity: 1;
}

.feedback-page .contact-field input:hover,
.feedback-page .contact-field textarea:hover {
    border-color: #a9a9a9;
}

.feedback-page .contact-field input:focus,
.feedback-page .contact-field textarea:focus {
    border-color: #20e1ff;
    box-shadow: 0 0 0 3px rgba(32, 225, 255, 0.14);
}

/* =========================================================
   DESCRIPTION
========================================================= */

.feedback-page .feedback-description {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* =========================================================
   SUBMIT ROW
========================================================= */

.feedback-page .contact-submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin: 4px 0 0;
    padding: 0;
}

/* =========================================================
   SUBMIT BUTTON
========================================================= */

.feedback-page .contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border: 1px solid #171717;
    border-radius: 6px;
    background: #171717;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.feedback-page .contact-submit:hover {
    border-color: #20e1ff;
    background: #20e1ff;
    color: #171717;
}

.feedback-page .contact-submit:focus-visible {
    outline: 3px solid rgba(32, 225, 255, 0.5);
    outline-offset: 3px;
}

.feedback-page .contact-submit:disabled {
    border-color: #999;
    background: #999;
    color: #fff;
    cursor: not-allowed;
}

/* =========================================================
   STATUS MESSAGES
========================================================= */

.feedback-page .contact-status {
    display: none;
    width: 100%;
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.feedback-page .contact-status.is-success {
    display: block;
    border-color: #b7dfc4;
    background: #f0faf3;
    color: #27633a;
}

.feedback-page .contact-status.is-error {
    display: block;
    border-color: #efc2c2;
    background: #fff4f4;
    color: #9a3030;
}

.feedback-page .contact-status.is-notice {
    display: block;
    border-color: #d8d8d8;
    background: #f8f8f8;
    color: #555;
}

/* =========================================================
   TABLET AND HALF-SCREEN
========================================================= */

@media (max-width: 1000px) {

    .feedback-page .contact-header {
        width: calc(100% - 32px);
        margin-bottom: 32px;
        padding-top: 24px;
    }

    .feedback-form-section {
        width: calc(100% - 32px);
        padding: 48px 40px;
    }

    .feedback-page .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .feedback-page {
        padding-bottom: 48px;
    }

    .feedback-page .contact-header {
        width: calc(100% - 24px);
        margin-bottom: 24px;
        padding-top: 16px;
    }

    .feedback-brand {
        margin-bottom: 16px;
        font-size: 20px;
    }

    .feedback-page .contact-title {
        font-size: clamp(32px, 9vw, 52px);
    }

    .feedback-page .contact-intro {
        margin-top: 20px;
        font-size: 13px;
        line-height: 1.7;
    }

    .feedback-form-section {
        width: calc(100% - 24px);
        padding: 35px 25px;
        border-radius: 14px;
    }

    .feedback-page .feedback-form {
        gap: 22px;
    }

    .feedback-page .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .feedback-page .contact-field textarea {
        min-height: 160px;
        font-size: 16px;
    }

    .feedback-page .contact-field input {
        font-size: 16px;
    }

    .feedback-page .contact-submit-row {
        justify-content: stretch;
    }

    .feedback-page .contact-submit {
        width: 100%;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .feedback-form-section {
        padding: 28px 20px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

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

    .feedback-page .contact-field input,
    .feedback-page .contact-field textarea,
    .feedback-page .contact-submit {
        transition-duration: 0.01ms;
    }
}
