/* ============================================================
   BOOK A FREE DEMO  |  BookDemo.css
   Consistent with The OPTIC System site design
============================================================ */

/* ── Intro text row ───────────────────────────────────────── */
#trBookDemo1 td {
    padding-bottom: 1.2em;
    font-size: .95rem;
    color: var(--c-text);
    line-height: 1.65;
}

/* ── Card wrapper ─────────────────────────────────────────── */
#bdCard {
    background: #f6f9ff;
    border: 1px solid #d4e0f7;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 2em 2.2em 2em;
    max-width: 680px;
}

/* ── Single-column field grid ────────────────────────────── */
#bdFields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15em;
}

/* ── Labels ───────────────────────────────────────────────── */
#bdCard label {
    display: block;
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--c-navy);
    margin-bottom: .35em;
    text-transform: uppercase;
}

/* ── Inputs & textarea ────────────────────────────────────── */
#bdCard input[type="text"],
#bdCard textarea {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #fff;
    border: 1.5px solid #c7d6f5;
    border-radius: var(--r-sm);
    padding: .55em .8em;
    font-family: var(--font-body);
    font-size: .97rem;
    color: var(--c-dark);
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}

#bdCard input[type="text"]:focus,
#bdCard textarea:focus {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(26,70,168,.12);
    background: #fff;
}

#bdCard textarea {
    resize: vertical;
    min-height: 7.5em;
    line-height: 1.55;
}

/* ── Placeholder hint under Message label ─────────────────── */
#bdMsgHint {
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--c-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-left: .3em;
}

/* ── Submit row ───────────────────────────────────────────── */
#bdSubmitRow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1em;
    margin-top: 1.5em;
}

/* ── Submit button (reuses .btn-primary style + overrides) ── */
.BTNSUBMIT {
    background: var(--c-blue);
    color: #fff !important;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    padding: .65em 2.2em;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(26,70,168,.30);
    transition: background .2s, transform .15s, box-shadow .2s;
    letter-spacing: .02em;
}

.BTNSUBMIT:hover {
    background: var(--c-blue-h);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26,70,168,.40);
}

/* ── Spinner ──────────────────────────────────────────────── */
.IMGWAIT {
    width: auto;
    height: 28px;
    display: none;
}

/* ── Validation highlight (set by BookDemo.js) ───────────────
   JS sets border inline; we just ensure the input re-styles
   cleanly on focus after a validation failure.                */
#bdCard input[type="text"]:focus[style*="red"],
#bdCard textarea:focus[style*="red"] {
    border-color: var(--c-blue) !important;
    box-shadow: 0 0 0 3px rgba(26,70,168,.12) !important;
}

/* ── Feedback message ─────────────────────────────────────── */
.BOOKDEMOFEEDBACK {
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f0ff 100%);
    border-left: 4px solid var(--c-blue);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 1em 1.3em;
    font-family: var(--font-body);
    font-size: .97rem;
    color: var(--c-text);
    margin-bottom: 1.2em;
    line-height: 1.6;
}

/* ── Responsive: narrow screens ─────────────────────────── */
@media (max-width: 560px) {
    #bdCard {
        padding: 1.4em 1.1em;
    }

    #bdSubmitRow {
        justify-content: stretch;
    }

    .BTNSUBMIT {
        width: 100%;
        text-align: center;
    }
}
