/* ============================================================
   ALCON BIOACTIVE
   EXPO ENQUIRY FORM
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Poppins", sans-serif;
}

/* ============================================================
   MAIN PAGE
   ============================================================ */

.page {
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

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

.form-card {
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 24px;
    padding: 38px 48px 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   LOGO
   ============================================================ */

.brand {
    text-align: center;
    margin-bottom: 12px;
}

.brand img {
    width: 145px;
    max-width: 100%;
    height: auto;
}

/* ============================================================
   ACCENT LINE
   ============================================================ */

.accent-line {
    width: 85px;
    height: 5px;
    margin: 8px auto 28px;
    border-radius: 10px;
    background: linear-gradient(90deg, #8dc63f, #f5d000, #1685a8);
}

/* ============================================================
   HEADING
   ============================================================ */

.eyebrow {
    margin: 0 0 4px;
    color: #8dc63f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

h1 {
    margin: 0;
    color: #087da3;
    font-size: 52px;
    line-height: 1.1;
    font-weight: 700;
}

.intro {
    margin: 12px 0 28px;
    color: #536b82;
    font-size: 16px;
    line-height: 1.6;
}

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

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 18px;
}

.field {
    min-width: 0;
}

.field.full {
    grid-column: 1 / -1;
}

/* ============================================================
   LABELS
   ============================================================ */

.field label {
    display: block;
    margin-bottom: 7px;
    color: #12263a;
    font-size: 15px;
    font-weight: 600;
}

.field label span {
    color: #8dc63f;
}

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

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #d8e1e8;
    border-radius: 12px;
    background: #ffffff;
    color: #12263a;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.field input,
.field select {
    height: 52px;
    padding: 0 16px;
}

/* Custom dropdown arrow, pulled in from the edge */

.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%2312263a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 8px;
}

.field textarea {
    min-height: 105px;
    padding: 12px 16px;
    resize: vertical;
}

/* Focus */

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #1685a8;
    box-shadow: 0 0 0 3px rgba(22, 133, 168, 0.1);
}

/* Error */

.error_input {
    border-color: #dc3545 !important;
}

/* ============================================================
   PER-FIELD VALIDATION MESSAGES (phone / email)
   ============================================================ */

.field-error {
    display: none;
    margin-top: 5px;
    color: #dc3545;
    font-size: 12px;
    line-height: 1.4;
}

.field-error.visible {
    display: block;
}

/* ============================================================
   COMPANY NAME HELP TEXT
   ============================================================ */

.field-help {
    display: block;
    margin-top: 5px;
    color: #667789;
    font-size: 12px;
    line-height: 1.4;
}

.field-help strong {
    color: #1685a8;
}

/* ============================================================
   REMARKS COUNTER
   ============================================================ */

.counter {
    margin-top: 4px;
    text-align: right;
    color: #7b8995;
    font-size: 11px;
}

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

#submit_button {
    width: 100%;
    height: 52px;
    margin-top: 22px;
    border: 0;
    border-radius: 12px;
    background: #1685a8;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

#submit_button:hover {
    background: #0d7190;
    transform: translateY(-1px);
}

#submit_button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.alert h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.alert p {
    margin: 0;
    line-height: 1.6;
}

.alert-success {
    background: #dff2e8;
    border: 1px solid #b9dfcb;
    color: #17633f;
}

.alert-error {
    background: #fde7e7;
    border: 1px solid #f3bcbc;
    color: #9b2222;
}

/* ============================================================
   SUCCESS MESSAGE
   ============================================================ */

#success_message {
    width: 100%;
    margin: 28px 0 0;
    padding: 24px;
    background: #dff2e8;
    border: 1px solid #b9dfcb;
    border-radius: 12px;
    color: #17633f;
}

#success_message strong {
    display: block;
    margin: 0 0 8px;
    color: #086b4d;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

#success_message p {
    margin: 0;
    color: #17633f;
    font-size: 17px;
    line-height: 1.6;
}

/* ============================================================
   SUCCESS STATE
   Logo + message only
   ============================================================ */

.form-card.success-state {
    padding-top: 45px;
    padding-bottom: 45px;
}

.form-card.success-state .brand {
    margin-bottom: 8px;
}

.form-card.success-state .accent-line {
    display: none;
}

.form-card.success-state #success_message {
    margin-top: 25px;
}

/* ============================================================
   PRIVACY NOTE
   ============================================================ */

.privacy-note {
    margin: 15px 0 0;
    text-align: center;
    color: #788897;
    font-size: 11px;
}

/* ============================================================
   HONEYPOT
   ============================================================ */

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {
    .page {
        padding: 24px 16px;
    }

    .form-card {
        max-width: 760px;
        padding: 32px 30px 26px;
    }

    h1 {
        font-size: 44px;
    }
}

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

@media (max-width: 650px) {
    .page {
        padding: 15px 10px;
    }

    .form-card {
        padding: 26px 20px 22px;
        border-radius: 18px;
    }

    .brand img {
        width: 125px;
    }

    .accent-line {
        margin-bottom: 22px;
    }

    h1 {
        font-size: 36px;
    }

    .intro {
        margin-bottom: 22px;
        font-size: 14px;
    }

    .grid {
        grid-template-columns: 1fr;
        row-gap: 15px;
    }

    .field.full {
        grid-column: auto;
    }

    .field input,
    .field select {
        height: 50px;
    }

    .field textarea {
        min-height: 100px;
    }

    #success_message {
        padding: 20px;
    }

    #success_message strong {
        font-size: 22px;
    }

    #success_message p {
        font-size: 15px;
    }
}

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

@media (max-width: 400px) {
    .form-card {
        padding: 22px 16px 20px;
    }

    h1 {
        font-size: 31px;
    }

    .eyebrow {
        font-size: 12px;
    }

    .intro {
        font-size: 13px;
    }
}
