/* ============================================================
   LWN Visit Scheduler — Front-End Styles
   ============================================================ */

.lwn-vs-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 760px;
    margin: 0 auto;
    color: #1a202c;
}

/* ── Sections ─────────────────────────────────────────────── */
.lwn-vs-form-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.lwn-vs-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
}

.lwn-vs-section-title {
    margin: 0 0 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

/* ── Form Fields ──────────────────────────────────────────── */
.lwn-vs-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.lwn-vs-row--2 > .lwn-vs-field {
    flex: 1;
}

.lwn-vs-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.lwn-vs-field:last-child {
    margin-bottom: 0;
}

.lwn-vs-field label {
    font-size: .85rem;
    font-weight: 600;
    color: #4a5568;
}

.lwn-vs-req {
    color: #e53e3e;
}

.lwn-vs-field input[type="text"],
.lwn-vs-field input[type="email"],
.lwn-vs-field input[type="tel"],
.lwn-vs-field input[type="number"],
.lwn-vs-field input[type="date"],
.lwn-vs-field select,
.lwn-vs-field textarea {
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: .95rem;
    color: #1a202c;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
}

.lwn-vs-field input:focus,
.lwn-vs-field select:focus,
.lwn-vs-field textarea:focus {
    outline: none;
    border-color: #2E86C1;
    box-shadow: 0 0 0 3px rgba(46,134,193,.12);
}

.lwn-vs-field textarea {
    resize: vertical;
    min-height: 80px;
}

.lwn-vs-hint {
    font-size: .78rem;
    color: #718096;
    margin: 2px 0 0;
}

/* ── Checkboxes ───────────────────────────────────────────── */
.lwn-vs-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lwn-vs-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: #2d3748;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color .15s, background .15s;
}

.lwn-vs-checkbox-label:hover {
    border-color: #2E86C1;
    background: #ebf5fb;
}

.lwn-vs-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #2E86C1;
}

/* ── Availability Feedback ────────────────────────────────── */
.lwn-vs-feedback {
    font-size: .8rem;
    margin-top: 4px;
}

/* ── Custom date picker ────────────────────────────────────────── */
.lwn-vs-cal-note {
    font-size: .85rem;
    font-weight: 600;
    color: #E55A2B;
    margin: 0 0 12px;
}

.lwn-vs-datepicker {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px 12px;
    background: #fff;
    max-width: 340px;
}

.lwn-vs-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lwn-vs-cal-title {
    font-size: .92rem;
    font-weight: 700;
    color: #1a202c;
}

.lwn-vs-cal-nav {
    width: 30px;
    height: 30px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: #4a5568;
}
.lwn-vs-cal-nav:hover:not(:disabled) { background: #f7fafc; border-color: #cbd5e0; }
.lwn-vs-cal-nav:disabled { opacity: .35; cursor: default; }

.lwn-vs-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.lwn-vs-cal-dow {
    text-align: center;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #a0aec0;
    padding: 4px 0;
}

.lwn-vs-cal-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    border-radius: 6px;
    border: 0;
    background: transparent;
}
.lwn-vs-cal-cell--empty { background: transparent; }

/* Selectable day */
.lwn-vs-cal-day {
    cursor: pointer;
    color: #1a202c;
    background: #f1f5f9;
    font-weight: 600;
}
.lwn-vs-cal-day:hover { background: #E55A2B; color: #fff; }

/* Greyed-out day (past, non-tour weekday, or blackout) */
.lwn-vs-cal-day--off {
    color: #cbd5e0;
    background: transparent;
    cursor: default;
    font-weight: 400;
}
.lwn-vs-cal-day--off:hover { background: transparent; color: #cbd5e0; }

.lwn-vs-cal-day.is-selected {
    background: #E55A2B;
    color: #fff;
}

.lwn-vs-cal-empty {
    font-size: .85rem;
    color: #718096;
    padding: 20px 8px;
    text-align: center;
}

.lwn-vs-feedback--error { color: #e53e3e; }
.lwn-vs-feedback--ok    { color: #38a169; }

.lwn-vs-capacity-note {
    font-size: .78rem;
    color: #718096;
    margin-top: 4px;
}

/* ── Submit ───────────────────────────────────────────────── */
.lwn-vs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, transform .1s;
    border: none;
}

.lwn-vs-btn--primary {
    background: #04b3e3;
    color: #fff;
    width: 100%;
    margin-top: 24px;
}

.lwn-vs-btn--primary:hover {
    background: #002856;
    transform: translateY(-1px);
}

.lwn-vs-btn--primary:disabled {
    background: #ccc;
    transform: none;
    cursor: not-allowed;
}

.lwn-vs-btn--outline {
    background: transparent;
    color: #E55A2B;
    border: 2px solid #E55A2B;
    padding: 10px 24px;
    font-size: .9rem;
    margin-top: 16px;
}

.lwn-vs-btn--outline:hover {
    background: #E55A2B;
    color: #fff;
}

.lwn-vs-notice {
    text-align: center;
    font-size: .8rem;
    color: #718096;
    margin-top: 12px;
}

/* ── Error ────────────────────────────────────────────────── */
.lwn-vs-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 12px 16px;
    color: #c53030;
    font-size: .9rem;
    margin-top: 16px;
}

/* ── Success ──────────────────────────────────────────────── */
.lwn-vs-success {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.lwn-vs-success__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.lwn-vs-success h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px;
}

.lwn-vs-success p {
    font-size: .95rem;
    color: #4a5568;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .lwn-vs-row { flex-direction: column; }
    .lwn-vs-checkboxes { grid-template-columns: 1fr; }
    .lwn-vs-section { padding: 18px 16px; }
}
