/* Public schedule booking page: 3-column layout, calendar, slots, form */

.schedule-page {
    min-height: 100vh;
    background: var(--color-bg-alt);
    padding: 1.5rem;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-page-inner {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.schedule-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.schedule-top-logo {
    display: block;
}

.schedule-top-logo img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.schedule-lang {
    font-size: 0.9rem;
}

.schedule-lang-form {
    display: inline;
}

.schedule-lang-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--color-med-gray);
    text-decoration: none;
    cursor: pointer;
}

.schedule-lang-link:hover {
    color: var(--color-dark-green);
}

.schedule-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

/* Three columns desktop */
.schedule-three-col {
    display: grid;
    grid-template-columns: 240px 0.75fr 240px;
    gap: 2rem;
    align-items: stretch;
    justify-content: space-between;
    justify-items: stretch;
}

@media (max-width: 900px) {
    .schedule-three-col {
        grid-template-columns: 1fr;
    }
}

.schedule-static-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.schedule-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

.schedule-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
}

.schedule-description p {
    margin: 0 0 0.75rem;
}

.schedule-description p:last-child {
    margin-bottom: 0;
}

.schedule-description ul,
.schedule-description ol {
    margin: 0 0 0.75rem 1.25rem;
    padding: 0;
}

.schedule-description a {
    color: var(--color-dark-green);
}

.schedule-organizer {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.schedule-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.schedule-organizer-name {
    font-weight: 600;
    color: var(--color-text);
}

.schedule-organizer-role {
    font-size: 0.85rem;
    color: var(--color-med-gray);
}

.schedule-location {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.schedule-location-icon { font-size: 1rem; }

.schedule-venue-phone .schedule-venue-phone-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.schedule-venue-phone-info {
    font-size: 0.8rem;
    color: var(--color-med-gray);
    font-weight: 400;
}

/* Calendar */
.schedule-calendar-col h2,
.schedule-form-col h2 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--color-text);
}

.schedule-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.schedule-month-label {
    font-weight: 600;
    color: var(--color-text);
}

.schedule-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-dark-green);
    cursor: pointer;
    border-radius: var(--radius);
}

.schedule-nav-btn:hover {
    background: var(--color-pale-green);
}

.schedule-nav-btn svg {
    display: block;
    flex-shrink: 0;
}

.schedule-nav-btn-disabled {
    color: var(--color-border);
    cursor: default;
    pointer-events: none;
}

.schedule-calendar-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-med-gray);
    text-align: center;
}

.schedule-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.8rem;
}

.schedule-day-form {
    display: contents;
}

.schedule-day-form button {
    width: 100%;
    height: 100%;
    min-height: 2.5rem;
    border: none;
    background: inherit;
    color: inherit;
    font: inherit;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
}

.schedule-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-text);
}

.schedule-day-pad {
    visibility: hidden;
    pointer-events: none;
}

.schedule-day-past {
    color: var(--color-border);
    cursor: default;
    pointer-events: none;
}

.schedule-day-no-slots {
    cursor: default;
    pointer-events: none;
}

.schedule-day-today,
.schedule-day.schedule-day-today,
.schedule-day-selected.schedule-day-today {
    background: none;
    color: var(--color-dark-green);
    font-weight: 600;
    border: 2px solid var(--color-border);
}

.schedule-day-has-slots:not(.schedule-day-past):not(.schedule-day-today):not(.schedule-day-selected) {
    background: var(--color-light-green);
    color: var(--color-dark-green);
}

.schedule-day-selected,
.schedule-day-selected.schedule-day-has-slots {
    background: var(--color-dark-green);
    color: var(--color-light-green);
    font-weight: 600;
}

/* Slots */
.schedule-slots-col h3 {
    font-size: 1rem;
    margin: 0 0 1rem;
    color: var(--color-text);
    text-align: center;
}

.schedule-slots-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-back-form {
    display: none;
}

.schedule-slot-form {
    margin: 0;
}

.schedule-slot-form button.schedule-slot {
    width: 100%;
    border: 1px solid var(--color-med-green);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--color-dark-green);
    font: inherit;
    cursor: pointer;
    text-align: center;
}

.schedule-slot {
    display: block;
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-med-green);
    border-radius: var(--radius);
    color: var(--color-dark-green);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}

.schedule-slot:hover {
    background: var(--color-pale-green);
}
.schedule-slot-selected,
.schedule-slot-form button.schedule-slot.schedule-slot-selected {
    background: var(--color-dark-green);
    color: #ffffff;
    border-color: var(--color-dark-green);
    font-weight: 600;
}
.schedule-slot-selected:hover,
.schedule-slot-form button.schedule-slot.schedule-slot-selected:hover {
    background: var(--color-dark-green);
    color: #ffffff;
}

.schedule-no-slots {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    text-align: center;
}

/* Form view (after selecting a slot) */
.schedule-form-view {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
}

@media (max-width: 600px) {
    .schedule-form-view { grid-template-columns: 1fr; }
}

.schedule-date-row,
.schedule-time-row {
    font-size: 0.9rem;
    margin: 0;
    margin-top: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}
.schedule-time-row { margin-top: 0.25rem; }
.schedule-date-row strong,
.schedule-time-row strong {
    font-weight: 600;
    color: var(--color-dark-green);
}
.schedule-date-icon,
.schedule-time-icon {
    font-size: 1rem;
    flex-shrink: 0;
}
.schedule-summary {
    font-weight: 600;
    color: var(--color-dark-green);
    margin: 0;
}

.form-info {
    font-size: 0.85rem;
    color: var(--color-med-gray);
    margin: 0.35rem 0 0;
}

.schedule-form-error {
    font-size: 0.9rem;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: var(--radius);
    padding: 0.65rem 0.85rem;
    margin: 0 0 1rem;
}

.schedule-field-error {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #b42318;
    font-weight: 500;
}

.schedule-booking-form .field.field-has-error input[type="text"],
.schedule-booking-form .field.field-has-error input[type="email"],
.schedule-booking-form .field.field-has-error input[type="tel"],
.schedule-booking-form .field.field-has-error textarea {
    border-color: #dc2626;
}

/* Phone-call links: email + phone side by side (50/50), including narrow viewports */
.schedule-booking-form .schedule-form-email-phone-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.schedule-booking-form .schedule-form-email-phone-row .form-group {
    margin-bottom: 0;
    min-width: 0;
}

/* Thanks view */
.schedule-thanks {
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.schedule-thanks-icon {
    display: block;
    margin: 0 auto 1rem;
}
.schedule-thanks-card h1 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    color: var(--color-dark-green);
}

.schedule-thanks-card p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.6;
}

.schedule-envelope-exists-datetime {
    margin: 1.25rem 0 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
}
.schedule-envelope-exists-time {
    display: inline-block;
    margin-left: 0.75rem;
}
.schedule-envelope-exists-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.schedule-envelope-exists-bypass-form {
    margin: 0;
}

.schedule-cancel-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--color-text-muted, #6b7280);
}

.schedule-cancel-notice__icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.12rem;
}

.schedule-cancel-notice__text {
    flex: 1;
    min-width: 0;
}

.schedule-thanks-card .schedule-cancel-notice {
    justify-content: center;
    margin: 0 auto;
    max-width: 22rem;
}
