.appointment-page,
.appointment-page * {
    box-sizing: border-box;
}

.appointment-brand {
    padding: 1.5rem 0 0;
}

.appointment-brand a {
    display: inline-flex;
}

.appointment-brand img {
    display: block;
    width: 150px;
    height: auto;
}

.appointment-page {
    min-height: 100vh;
    padding: 0px 0;
    font-family: Arial, Helvetica, sans-serif;
}

.appointment-page .container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.appointment-page .row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
}

.appointment-page .appointment-form .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.appointment-page .col-lg-5,
.appointment-page .col-lg-7,
.appointment-page .col-md-6,
.appointment-page .col-12 {
    min-width: 0;
}

.appointment-page .col-md-6 {
    grid-column: span 1;
}

.appointment-page .col-12 {
    grid-column: 1 / -1;
}

.appointment-page .g-3 {
    gap: 1.2rem;
}

.appointment-page .g-5 {
    gap: 3rem;
}

.appointment-page .py-5 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.appointment-page .mb-4 {
    margin-bottom: 1.5rem;
}

.appointment-page {
    background:
        radial-gradient(circle at top left, rgba(117, 162, 210, 0.18), transparent 30%),
        linear-gradient(180deg, #f7f8fc 0%, #edf5ff 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.appointment-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 82, 160, 0.04), transparent 45%);
    pointer-events: none;
}

.appointment-page .container {
    position: relative;
    z-index: 1;
}

.appointment-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(117, 162, 210, 0.12);
    color: #0d5aa7;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.appointment-title {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    color: #101828;
    margin-bottom: 1rem;
}

.appointment-copy {
    font-size: 1.08rem;
    color: #475467;
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 1.75rem;
}

.appointment-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.appointment-benefits li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.95rem;
    color: #1f2937;
    font-weight: 500;
}

.appointment-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #0d5aa7;
    font-weight: 800;
}

.appointment-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    padding: 2rem;
    backdrop-filter: blur(6px);
}

.appointment-message {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.appointment-message-error {
    color: #9b2c2c;
    background: #fff5f5;
    border-color: #f2b8b5;
}

.appointment-message-success {
    color: #176b42;
    background: #f0fbf5;
    border-color: #a8dec0;
}

.appointment-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
}

.appointment-message-error .appointment-message-icon {
    background: #c53b3b;
}

.appointment-message-success .appointment-message-icon {
    background: #218653;
}

.appointment-message-title {
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 800;
}

.appointment-form {
    display: grid;
    gap: 1.2rem;
}

.appointment-form .form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #344054;
}

.appointment-form .form-control,
.appointment-form .form-select {
    display: block;
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    min-height: 52px;
    padding: 0.8rem 1rem;
    background: #fff;
    color: #101828;
    box-shadow: none;
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
    border-color: #75a2d2;
    box-shadow: 0 0 0 0.2rem rgba(117, 162, 210, 0.18);
}

.appointment-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.appointment-calendar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.appointment-day {
    appearance: none;
    border: 1px solid #d6d9e0;
    background: #f8fafc;
    color: #1f2937;
    border-radius: 14px;
    padding: 0.8rem 0.75rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.appointment-day.is-selected {
    background: rgba(13, 90, 167, 0.08);
    border-color: #0d5aa7;
    color: #0d5aa7;
    box-shadow: inset 0 0 0 1px rgba(13, 90, 167, 0.2);
}

.appointment-time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.appointment-time {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #d6d9e0;
    background: #f8fafc;
    color: #1f2937;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.appointment-time:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.appointment-time.is-booked {
    background: #eef0f3;
    border-color: #d5d9e0;
    color: #8a909b;
    text-decoration: line-through;
}

.appointment-time.is-selected {
    background: #0d5aa7;
    color: white;
    border-color: #0d5aa7;
}

.appointment-time-help {
    display: block;
    margin-top: 0.5rem;
    color: #667085;
    font-size: 0.78rem;
}

.appointment-summary {
    background: linear-gradient(135deg, rgba(13, 90, 167, 0.06), rgba(117, 162, 210, 0.12));
    border: 1px solid rgba(13, 90, 167, 0.14);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 600;
}

.appointment-summary .summary-label {
    display: block;
    font-size: 0.74rem;
    color: #475467;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.appointment-submit-btn {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d5aa7 0%, #2259a5 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appointment-submit-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(13, 90, 167, 0.25);
}

@media (max-width: 768px) {
    .appointment-brand {
        padding: 1.25rem 0 0;
    }

    .appointment-page .row {
        grid-template-columns: 1fr;
    }

    .appointment-page .appointment-form .row {
        grid-template-columns: 1fr;
    }

    .appointment-card {
        padding: 1.4rem;
    }

    .appointment-calendar,
    .appointment-time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .appointment-calendar,
    .appointment-time-grid {
        grid-template-columns: 1fr;
    }
}
