/* Booking portal design system (estimator booking design) - copied from BookingPortal/wwwroot/css/booking.css */

:root {
    /* Ethos brand: Light Green #789D4A (PMS 576), Dark Green #07272D (PMS 5463),
       Slate #75787B, Stone #EBECE7, Sand #FAFAF9 */
    --est-green: #789D4A;
    --est-green-dark: #67823A;
    --est-green-tint: #F0F4E7;
    --est-ink: #07272D;
    --est-muted: #75787B;
    --est-line: #E0E1DB;
    --est-card: #FFFFFF;
    --est-red: #C0392B;
}

.est-page {
    max-width: 640px;
    margin: 0 auto;
    color: var(--est-ink);
}

.est-shell {
    background: var(--est-card);
    border: 1px solid var(--est-line);
    border-radius: 20px;
    overflow: hidden;
}

.est-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--est-line);
    background: var(--est-card);
}

.est-logo { height: 32px; }

.est-body {
    padding: 24px;
    background: #F2F3EE; /* between Ethos Stone and Sand */
}

.est-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.est-pill-pending { background: #FBF0DA; color: #A8721B; }
.est-pill-confirmed { background: #EAF0DD; color: #67823A; }
.est-pill-cancelled { background: #F9E4E1; color: var(--est-red); }

.est-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8A33D;
}

.est-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.est-subtitle {
    color: var(--est-muted);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.est-card {
    background: var(--est-card);
    border: 1px solid var(--est-line);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.est-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.est-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--est-muted);
    margin-bottom: 2px;
}

.est-value { font-weight: 600; }

.est-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.est-slot {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--est-card);
    border: 1px solid var(--est-line);
    border-radius: 16px;
    padding: 16px 20px;
}

.est-slot-soonest {
    border: 1.5px solid var(--est-green);
    background: #FDFEFD;
}

.est-daybadge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #EEF1EC;
    color: var(--est-muted);
    flex-shrink: 0;
}

.est-daybadge-soonest { background: var(--est-green-tint); color: var(--est-green-dark); }

.est-daybadge-dow {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.est-daybadge-day {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--est-ink);
}

.est-daybadge-soonest .est-daybadge-day { color: var(--est-green-dark); }

.est-slot-text { flex: 1 1 auto; min-width: 0; }

.est-slot-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.est-slot-window {
    color: var(--est-muted);
    font-size: 0.9rem;
}

.est-tag-soonest {
    background: var(--est-green-tint);
    color: var(--est-green-dark);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
}

.est-tag-later {
    color: var(--est-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.est-btn-primary,
.est-btn-outline,
.est-btn-danger {
    border-radius: 12px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    padding: 8px 24px !important;
    flex-shrink: 0;
}

.est-btn-primary {
    background: var(--est-green) !important;
    color: #fff !important;
}

.est-btn-primary:hover { background: var(--est-green-dark) !important; }

.est-btn-outline {
    background: var(--est-card) !important;
    border: 1px solid var(--est-line) !important;
    color: var(--est-ink) !important;
}

.est-btn-danger {
    background: var(--est-card) !important;
    border: 1px solid #EFC7C2 !important;
    color: var(--est-red) !important;
}

.est-btn-full {
    display: flex !important;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 24px !important;
}

.est-nonework {
    text-align: center;
    margin: 4px 0 20px 0;
}

.est-nonework-link {
    color: var(--est-muted) !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.est-infobox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #EBECE7; /* Ethos Stone */
    border-radius: 16px;
    padding: 16px 20px;
    color: var(--est-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.est-infoicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #DDE0D9;
    color: var(--est-muted);
    font-weight: 700;
    font-size: 0.75rem;
    font-style: italic;
    flex-shrink: 0;
}

.est-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--est-green-tint);
    border: 1px solid #D9E2C4;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.est-banner-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--est-green);
    flex-shrink: 0;
}

.est-banner-title { font-weight: 700; font-size: 1.05rem; }
.est-banner-sub { color: #67823A; font-size: 0.9rem; }

.est-bookingcard-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.est-block { margin-bottom: 16px; }
.est-block-label { margin-bottom: 12px; }

/* Dialogs */
.est-dialog {
    border-radius: 20px !important;
    padding: 8px;
}

.est-field-label {
    font-weight: 700;
    margin-bottom: 2px;
}

.est-field-optional {
    color: var(--est-muted);
    font-weight: 400;
}

.est-field-hint {
    color: var(--est-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.est-field-error {
    color: var(--est-red);
    font-size: 0.8rem;
    margin-top: 4px;
}

.est-textarea .mud-input-outlined-border { border-radius: 12px; }

.est-dialog-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.est-btn-grow { flex: 1 1 auto; }

.est-reasons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.est-reason {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--est-line);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 500;
    background: var(--est-card);
}

.est-reason-selected {
    border-color: var(--est-green);
    background: #F5F8ED;
}

.est-radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #C9CDC6;
    background: #fff;
    flex-shrink: 0;
}

.est-radio-selected {
    border-color: var(--est-green);
    background: var(--est-green);
}

.est-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.est-notfound-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #EBECE7; /* Ethos Stone */
    margin: 8px auto 16px auto;
}

.est-code {
    display: inline-block;
    background: #EBECE7;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
    color: var(--est-ink);
    word-break: break-all;
}

.est-home-text {
    margin: 0;
    line-height: 1.6;
    color: var(--est-ink);
    font-size: 0.95rem;
}

/* Mobile layout */
@media (max-width: 600px) {
    .est-body { padding: 16px; }
    .est-header { padding: 12px 16px; }
    .est-details { grid-template-columns: 1fr; }
    .est-card, .est-slot { padding: 14px 16px; }

    .est-slot { flex-wrap: wrap; }

    .est-slot .est-btn-primary,
    .est-slot .est-btn-outline {
        width: 100%;
        margin-top: 4px;
    }
}
