
.appointment-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(9, 40, 72, 0.82);
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow-y: auto;
}

.appointment-overlay.active {
    display: flex;
}

.appointment-box {
    position: relative;
    width: 100%;
    max-width: 455px;
    max-height: calc(100dvh - 30px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 13px;
    padding: 26px 22px 22px;
    box-sizing: border-box;
    box-shadow: 0 15px 50px rgba(0,0,0,.25);
    font-family: Arial, sans-serif;
}

.appointment-box * {
    box-sizing: border-box;
}

.appointment-box h2 {
    margin: 0 35px 6px 0;
    font-size: 21px;
    font-weight: 700;
    color: #102841;
}

.appointment-subtitle {
    margin: 0 0 20px;
    color: #66768a;
    font-size: 13px;
}

.appointment-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #65758b;
    line-height: 1;
}

#appointmentForm label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #102841;
    margin-bottom: 7px;
}

#appointmentForm input,
#appointmentForm select,
#appointmentForm textarea {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 9px;
    padding: 13px 12px;
    font-family: inherit;
    font-size: 14px;
    color: #102841;
    margin-bottom: 16px;
    outline: none;
    min-height: 48px;
}

#appointmentForm input:focus,
#appointmentForm select:focus,
#appointmentForm textarea:focus {
    border-color: #009fe3;
    box-shadow: 0 0 0 2px rgba(0,159,227,.10);
}

#appointmentForm textarea {
    resize: vertical;
    min-height: 75px;
}

.appointment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.appointment-row > div {
    min-width: 0;
}

.appointment-submit {
    width: 100%;
    background: #ffa000;
    color: #000;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.appointment-submit:hover {
    background: #ed9300;
}

.appointment-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

#appointmentMessage {
    margin-bottom: 10px;
    font-size: 13px;
}

#appointmentMessage.success {
    color: #16803b;
}

#appointmentMessage.error {
    color: #dc2626;
}

body.appointment-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .appointment-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .appointment-box {
        padding: 23px 18px;
    }

    .appointment-box h2 {
        font-size: 20px;
    }
}
