/* ════════════════════════════════════════════════════════════════════════
   MODULE: Transport Order Form   [transport-order]
   ════════════════════════════════════════════════════════════════════════
   Multi-section transport order form with light cyan background, two-
   column field layout, dark navy heading, red eyebrow, teal submit button.
   ════════════════════════════════════════════════════════════════════════ */

.module-transport-order {
    --to-cyan:        #dff1fb;     /* page background — light cyan */
    --to-navy:        #0B1D3A;     /* heading + labels */
    --to-red:         #E5594D;     /* eyebrow + required asterisks */
    --to-teal:        #1AAD9B;     /* submit button */
    --to-teal-hover:  #169888;
    --to-text-mid:    #475569;
    --to-text-muted:  #64748b;
    --to-input-bg:    #ffffff;
    --to-input-border: #cdd9e1;
    --to-input-focus:  #1AAD9B;
    --to-section-rule: #b5cad6;

    /* Break out of any wrapping container — full viewport width */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 64px 24px;
    box-sizing: border-box;
}

.module-to-container {
    max-width: 760px;
    margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.module-to-header {
    text-align: center;
    margin-bottom: 28px;
}
.module-to-eyebrow {
    color: var(--to-red);
    font-style: italic;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.module-to-heading {
    color: var(--to-navy);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
    margin: 0 0 8px;
}
.module-to-subtitle {
    color: var(--to-text-mid);
    font-size: 1rem;
    margin: 8px 0 0;
}

/* ── Banner (success / error after submit) ──────────────────────────── */
.module-to-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    margin: 20px 0 24px;
    line-height: 1.5;
}
.module-to-banner-ok {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.module-to-banner-err {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.module-to-banner svg { flex-shrink: 0; margin-top: 2px; }

/* ── Form base ──────────────────────────────────────────────────────── */
.module-to-form {
    width: 100%;
}

.module-to-section-label {
    color: var(--to-navy);
    font-weight: 700;
    font-size: 1.02rem;
    margin: 24px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--to-section-rule);
    letter-spacing: 0.01em;
}
.module-to-section-label:first-of-type {
    margin-top: 8px;
}

/* Two-column row that collapses to single on mobile */
.module-to-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 12px;
}

/* Each field — label + input/textarea */
.module-to-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.module-to-field-full {
    grid-column: 1 / -1;
    margin-bottom: 14px;
}
.module-to-field label {
    color: var(--to-text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
}
.module-to-field label .req {
    color: var(--to-red);
    font-weight: 700;
}

.module-to-field input,
.module-to-field textarea {
    background: var(--to-input-bg);
    border: 1px solid var(--to-input-border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--to-navy);
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
    box-sizing: border-box;
}
.module-to-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}
.module-to-field input::placeholder,
.module-to-field textarea::placeholder {
    color: #b0bdc8;
}
.module-to-field input:focus,
.module-to-field textarea:focus {
    outline: 0;
    border-color: var(--to-input-focus);
    box-shadow: 0 0 0 3px rgba(26, 173, 155, 0.18);
}

/* Honeypot — hidden from real users, visible to bots */
.module-to-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ── Submit button ──────────────────────────────────────────────────── */
.module-to-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
}
.module-to-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--to-teal);
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    padding: 12px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease, transform .12s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    letter-spacing: 0.02em;
}
.module-to-submit:hover {
    background: var(--to-teal-hover);
}
.module-to-submit:active {
    transform: translateY(1px);
}
.module-to-submit-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .module-transport-order {
        padding: 40px 16px;
    }
    .module-to-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .module-to-heading {
        font-size: 1.35rem;
    }
}
