/* =========================================
   Base & Layout
   ========================================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

.container {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    max-width: 640px;
    margin: 40px auto;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

/* =========================================
   Branding
   ========================================= */
.branding {
    text-align: center;
    margin-bottom: 18px;
}

.branding img {
    height: 60px;
    margin-bottom: 8px;
}

.branding h2 {
    font-size: 1.3em;
    font-weight: 600;
    margin: 8px 0 0 0;
    letter-spacing: 0.5px;
    color: #222;
}

/* =========================================
   Messages
   ========================================= */
.success {
    color: #328d2a;
    margin-bottom: 12px;
    font-weight: 600;
}

.error {
    color: #c22a2a;
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-state {
    color: #777;
    font-style: italic;
}

/* =========================================
   Booking Confirmed — Success Screen
   ========================================= */
.booking-confirmed {
    margin-top: 16px;
    padding: 20px;
    background: #f0faf3;
    border-radius: 10px;
    border: 1px solid #b6e2c4;
    text-align: center;
}

.confirmed-detail {
    font-size: 1.05em;
    margin-bottom: 8px;
    color: #222;
}

.meeting-link-line {
    margin-bottom: 16px;
    font-size: 0.97em;
}

.meeting-link-line a {
    color: #014aad;
    font-weight: 600;
    text-decoration: none;
}

.meeting-link-line a:hover {
    text-decoration: underline;
}

.cal-label {
    font-weight: 600;
    font-size: 0.92rem;
    color: #444;
    margin-bottom: 10px;
}

.cal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cal-btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.cal-btn.gcal {
    background: #0078d4;
}

.cal-btn.gcal:hover {
    background: #1558b0;
}

.cal-btn.outlook {
    background: #0078d4;
}

.cal-btn.outlook:hover {
    background: #1558b0;
}

.cal-btn.ical {
    background: #0078d4;
}

.cal-btn.ical:hover {
    background: #1558b0;
}

/* =========================================
   Timezone Label
   ========================================= */
.tz-label {
    display: inline-block;
    background: #eef2ff;
    color: #3a4ab0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* =========================================
   Entry Form (Step 1)
   ========================================= */
.entry-form {
    text-align: center;
}

.entry-form label {
    display: block;
    margin-top: 14px;
    font-size: 1rem;
}

.entry-form select,
.entry-form input[type="text"] {
    font-size: 1.1em;
    margin-top: 7px;
    padding: 7px 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    width: 80%;
    max-width: 320px;
}

.entry-form select:focus,
.entry-form input[type="text"]:focus {
    border-color: #014aad;
    outline: none;
}

/* =========================================
   Calendar
   ========================================= */
.calendar-form {
    text-align: center;
}

.calendar-table {
    border-collapse: collapse;
    margin: 0 auto 24px;
}

.calendar-table th,
.calendar-table td {
    width: 48px;
    height: 48px;
    text-align: center;
    vertical-align: middle;
    border-radius: 8px;
    font-size: 1.1em;
}

.calendar-table th {
    color: #888;
    font-weight: 600;
}

.calendar-table td {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
}

.calendar-table td.enabled {
    background: #014aad;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.calendar-table td.enabled:hover {
    background: #013a82;
}

.calendar-table td.selected {
    background: #f25c19 !important;
    color: #fff !important;
    border: 2.5px solid #c44a10;
}

/* =========================================
   Slot List & Booking Form
   ========================================= */
.slot-list {
    margin: 0 0 24px 3px;
    font-size: 1.05em;
}

.slot-option {
    display: block;
    margin: 8px 0;
    cursor: pointer;
}

.slot-list label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

.slot-list input[type="text"],
.slot-list input[type="email"] {
    width: 95%;
    padding: 7px 10px;
    margin: 6px 0 14px 0;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 0.97em;
    box-sizing: border-box;
}

.slot-list input[type="text"]:focus,
.slot-list input[type="email"]:focus {
    border-color: #014aad;
    outline: none;
}

/* =========================================
   Buttons
   ========================================= */
button {
    font-size: 1rem;
    padding: 9px 24px;
    background: #014aad;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s ease;
}

button:hover {
    background: #013a82;
}

button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 680px) {
    .container {
        margin: 16px;
        padding: 20px 16px;
    }

    .calendar-table th,
    .calendar-table td {
        width: 38px;
        height: 38px;
        font-size: 0.95em;
    }

    .entry-form select,
    .entry-form input[type="text"] {
        width: 100%;
    }

    .slot-list input[type="text"],
    .slot-list input[type="email"] {
        width: 100%;
    }

    .cal-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cal-btn {
        width: 80%;
        text-align: center;
    }
}

.slot-list input[type="tel"] {
    width: 95%;
    padding: 7px 10px;
    margin: 6px 0 14px 0;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 0.97em;
    box-sizing: border-box;
}

.slot-list input[type="tel"]:focus {
    border-color: #014aad;
    outline: none;
}

