* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background: #f4f7f6;
    color: #123;
    overflow-x: hidden;
}

.appointment-page {
    width: 100%;
    min-height: 100vh;
    padding: 14px;
    background:
        radial-gradient(circle at top left, rgba(47, 155, 99, 0.14), transparent 32%),
        radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.12), transparent 34%),
        #f4f7f6;
}

.appointment-card {
    width: 90%;
    margin: 0 auto;
    min-height: calc(100vh - 28px);
    background: #fff;
    border-radius: 10px !important;
    padding: 16px;
    border: 1px solid rgba(47, 155, 99, 0.12);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    animation: appointmentFadeUp 0.35s ease;
}

@keyframes appointmentFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px !important;
    background: #eefaf3;
    color: #078246;
    text-decoration: none;
    font-weight: 900;
    font-size: 12px;
    border: 1px solid rgba(47, 155, 99, 0.12);
    box-shadow: 0 4px 12px rgba(47, 155, 99, 0.08);
    transition: all 0.18s ease;
}

.back-link::before {
    content: "⬅️ ";
}

.back-link:hover {
    background: #dcfce7;
    color: #04743e;
    transform: translateX(-4px);
    box-shadow: 0 8px 18px rgba(47, 155, 99, 0.16);
}

.appointment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2f9b63, #078246);
    color: #fff;
    border-radius: 10px !important;
    padding: 14px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(7, 130, 70, 0.26);
}

.appointment-header::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 180px;
    height: 180px;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.appointment-header::before {
    content: "";
    position: absolute;
    bottom: -45%;
    left: 28%;
    width: 130px;
    height: 130px;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.09);
    pointer-events: none;
}

.appointment-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.18);
    font-size: 25px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    transition: all 0.18s ease;
}

.appointment-header:hover .appointment-icon {
    transform: rotate(-5deg) scale(1.06);
    background: rgba(255, 255, 255, 0.25);
}

.appointment-header > div {
    position: relative;
    z-index: 1;
}

.appointment-label {
    display: inline-block;
    margin-bottom: 5px;
    padding: 4px 9px;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.18);
    color: #eafff2;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.appointment-header h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1;
}

.appointment-header p {
    margin: 4px 0 0;
    font-weight: 900;
    color: #eafff2;
    font-size: 13px;
}

.appointment-header p span {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #eafff2;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.schedule-box {
    border-radius: 10px !important;
    padding: 10px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(47, 155, 99, 0.20);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.schedule-box strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #078246;
    margin-bottom: 6px;
    font-size: 13px;
}

.schedule-box strong::before {
    content: "🗓️";
    font-size: 15px;
}

.schedule-box span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 5px 4px 0 0;
    padding: 8px 10px;
    border-radius: 10px !important;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    border: 0;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.18s ease;
    cursor: default;
}

.schedule-box span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: translateX(-120%);
    transition: transform 0.35s ease;
}

.schedule-box span:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
    filter: brightness(1.06);
}

.schedule-box span:hover::after {
    transform: translateX(120%);
}

.success-box,
.error-box {
    position: relative;
    border-radius: 10px !important;
    padding: 13px 14px 13px 48px;
    margin-bottom: 10px;
    font-weight: 900;
    font-size: 13px;
    line-height: 1.45;
    overflow: hidden;
}

.success-box::before,
.error-box::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 900;
    transform: translateY(-50%);
}

.success-box {
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    color: #166534;
    border: 1px solid #86efac;
    box-shadow: 0 8px 18px rgba(22, 101, 52, 0.10);
}

.success-box::before {
    content: "✓";
    background: #bbf7d0;
    color: #15803d;
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.20);
}

.error-box {
    background: linear-gradient(135deg, #fee2e2, #fff7ed);
    color: #991b1b;
    border: 1px solid #fecaca;
    box-shadow: 0 8px 18px rgba(153, 27, 27, 0.10);
}

.error-box::before {
    content: "!";
    background: #fecaca;
    color: #b91c1c;
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.20);
}

.success-box p,
.error-box p {
    margin: 0 0 4px;
}

.success-box p:last-child,
.error-box p:last-child {
    margin-bottom: 0;
}

.rate-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 3px 8px;
    margin-left: 4px;
    border-radius: 10px !important;
    background: rgba(153, 27, 27, 0.10);
    color: #7f1d1d;
    font-weight: 900;
}

.appointment-form {
    display: grid;
    grid-template-columns: minmax(310px, 1fr) minmax(170px, 0.55fr) minmax(170px, 0.55fr);
    gap: 14px;
    align-items: start;
}

.calendar-wrap {
    grid-column: 1;
    grid-row: 1 / span 6;
    border-radius: 10px !important;
    padding: 10px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid rgba(47, 155, 99, 0.16);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
    transition: all 0.18s ease;
}

.calendar-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
}

.calendar-wrap::before {
    content: "📅 Choose Appointment Date";
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
    color: #078246;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px !important;
    background: #eefaf3;
    border: 1px solid #bfe8d0;
}

.appointment-form label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    font-weight: 900;
    color: #334155;
}

.appointment-form label::before {
    padding-left: 2px;
}

.appointment-form label:nth-of-type(1) {
    grid-column: 2 / 4;
}

.appointment-form label:nth-of-type(2) {
    grid-column: 2;
}

.appointment-form label:nth-of-type(3) {
    grid-column: 3;
}

.appointment-form label:nth-of-type(4) {
    grid-column: 2 / 4;
}

.appointment-form label:nth-of-type(1)::before {
    content: "🧑 Patient Information";
    color: #078246;
}

.appointment-form label:nth-of-type(2)::before {
    content: "📞 Contact Details";
    color: #078246;
}

.appointment-form label:nth-of-type(3)::before {
    content: "📧 Email";
    color: #078246;
}

.appointment-form label:nth-of-type(4)::before {
    content: "📝 Consultation Reason";
    color: #078246;
}

.appointment-form input,
.appointment-form textarea {
    width: 100%;
    border: 1px solid #dbe3ea;
    border-radius: 10px !important;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    background: #fff;
    transition: all 0.18s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.035);
}

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

.appointment-form input:hover,
.appointment-form textarea:hover {
    border-color: rgba(47, 155, 99, 0.45);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.appointment-form input:focus,
.appointment-form textarea:focus {
    border-color: #2f9b63;
    box-shadow: 0 0 0 3px rgba(47, 155, 99, 0.13);
    transform: translateY(-1px);
    background: #ffffff;
}

.calendar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
    padding: 4px 2px;
}

.calendar-top strong {
    font-size: 16px;
    color: #0f172a;
    text-align: center;
    padding: 7px 12px;
    border-radius: 10px !important;
    background: #f1f5f9;
    font-weight: 900;
}

.calendar-top button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2f9b63, #078246);
    color: #fff;
    font-size: 21px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s ease;
    box-shadow: 0 6px 14px rgba(47, 155, 99, 0.20);
}

.calendar-top button:not(:disabled):hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 20px rgba(47, 155, 99, 0.28);
}

.calendar-top button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.calendar-days,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-days {
    gap: 6px;
    margin-bottom: 8px;
}

.calendar-grid {
    gap: 5px;
}

.calendar-days span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 10px !important;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.10);
}

.calendar-date {
    min-height: 48px;
    border: 1px solid #dbe3ea;
    border-radius: 10px !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    padding: 3px;
    transition: all 0.18s ease;
}

.calendar-date strong {
    font-size: 13px;
}

.calendar-date small {
    font-size: 8px;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
}

.schedule-box span.day-sun,
.calendar-days span:nth-child(1),
.calendar-date.available.day-sun {
    background: #94a3b8;
    border-color: #94a3b8;
    color: #fff;
}

.schedule-box span.day-mon,
.calendar-days span:nth-child(2),
.calendar-date.available.day-mon {
    background: #d66ac2;
    border-color: #d66ac2;
    color: #fff;
}

.schedule-box span.day-tue,
.calendar-days span:nth-child(3),
.calendar-date.available.day-tue {
    background: #a78bfa;
    border-color: #a78bfa;
    color: #fff;
}

.schedule-box span.day-wed,
.calendar-days span:nth-child(4),
.calendar-date.available.day-wed {
    background: #60a5fa;
    border-color: #60a5fa;
    color: #fff;
}

.schedule-box span.day-thu,
.calendar-days span:nth-child(5),
.calendar-date.available.day-thu {
    background: #4ade80;
    border-color: #4ade80;
    color: #fff;
}

.schedule-box span.day-fri,
.calendar-days span:nth-child(6),
.calendar-date.available.day-fri {
    background: #d9cc79;
    border-color: #d9cc79;
    color: #fff;
}

.schedule-box span.day-sat,
.calendar-days span:nth-child(7),
.calendar-date.available.day-sat {
    background: #f2a299;
    border-color: #f2a299;
    color: #fff;
}

.calendar-date.available {
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.calendar-date.available:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.calendar-date.selected {
    background: #2f9b63 !important;
    color: #fff !important;
    border-color: #2f9b63 !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 26px rgba(47, 155, 99, 0.34) !important;
}

.calendar-date.disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #dbe3ea !important;
    cursor: not-allowed;
    opacity: 0.75;
    box-shadow: none !important;
}

.calendar-date.full {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #ef4444 !important;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.16) !important;
}

.calendar-date.empty {
    border: 0;
    background: transparent !important;
    cursor: default;
}

#selectedDateText {
    display: block;
    margin-top: 8px;
    font-weight: 900;
    color: #078246;
    font-size: 12px;
    padding: 9px 11px;
    border-radius: 10px !important;
    background: #eefaf3;
    border: 1px solid #bfe8d0;
    box-shadow: 0 6px 14px rgba(47, 155, 99, 0.10);
}

.appointment-actions {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    align-items: stretch;
}

.submit-btn,
.clear-btn {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    border: none;
    border-radius: 10px !important;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}

.submit-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2f9b63, #078246);
    color: #fff;
    box-shadow: 0 10px 24px rgba(47, 155, 99, 0.28);
}

.submit-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-120%);
    transition: transform 0.35s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #078246, #046c39);
    box-shadow: 0 16px 34px rgba(47, 155, 99, 0.36);
}

.submit-btn:hover::after {
    transform: translateX(120%);
}

.clear-btn {
    background: #eef2f7;
    color: #0f172a;
    border: 1px solid #dbe3ea;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.clear-btn:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
}

@media (max-width: 980px) {
    .appointment-card {
        width: 100%;
    }

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

    .calendar-wrap {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .appointment-form label:nth-of-type(1) {
        grid-column: 1 / 3;
    }

    .appointment-form label:nth-of-type(2) {
        grid-column: 1;
    }

    .appointment-form label:nth-of-type(3) {
        grid-column: 2;
    }

    .appointment-form label:nth-of-type(4),
    .appointment-actions {
        grid-column: 1 / 3;
    }
}

@media (max-width: 650px) {
    .appointment-page {
        padding: 0;
    }

    .appointment-card {
        width: 100%;
        min-height: 100vh;
        border-radius: 10px !important;
        padding: 10px;
        box-shadow: none;
        border: 0;
    }

    .back-link {
        margin-bottom: 8px;
        padding: 7px 10px;
    }

    .appointment-header {
        padding: 11px;
        border-radius: 10px !important;
        margin-bottom: 9px;
    }

    .appointment-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .appointment-label {
        font-size: 12px;
    }

    .appointment-header h1 {
        font-size: 21px;
    }

    .appointment-header p {
        font-size: 12px;
    }

    .schedule-box {
        padding: 8px;
        margin-bottom: 9px;
    }

    .schedule-box span {
        font-size: 10px;
        padding: 5px 7px;
    }

    .appointment-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .calendar-wrap,
    .appointment-form label:nth-of-type(1),
    .appointment-form label:nth-of-type(2),
    .appointment-form label:nth-of-type(3),
    .appointment-form label:nth-of-type(4),
    .appointment-actions {
        grid-column: 1;
        grid-row: auto;
    }

    .appointment-form input,
    .appointment-form textarea {
        padding: 9px 10px;
    }

    .appointment-form textarea {
        min-height: 58px;
    }

    .calendar-wrap {
        padding: 8px;
        border-radius: 10px !important;
    }

    .calendar-wrap:hover {
        transform: none;
    }

    .calendar-top strong {
        font-size: 14px;
    }

    .calendar-top button {
        width: 31px;
        height: 31px;
    }

    .calendar-days {
        gap: 4px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-days span {
        height: 28px;
        font-size: 10px;
        border-radius: 10px !important;
    }

    .calendar-date {
        min-height: 43px;
        border-radius: 10px !important;
    }

    .calendar-date small {
        font-size: 7px;
    }

    .calendar-date.available:hover {
        transform: translateY(-2px) scale(1.03);
    }

    .appointment-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .submit-btn,
    .clear-btn {
        min-height: 52px;
        font-size: 12px;
        padding: 10px 8px;
        border-radius: 10px !important;
    }
}

@media (max-width: 380px) {
    .calendar-days span {
        height: 25px;
        font-size: 9px;
    }

    .calendar-date {
        min-height: 38px;
    }

    .calendar-date small {
        display: none;
    }

    .appointment-header h1 {
        font-size: 19px;
    }

    .appointment-actions {
        grid-template-columns: 1fr;
    }
}
.submit-btn,
.clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
}

.submit-icon {
    background: #dcfce7;
    color: #078246;
}

.clear-icon {
    background: #dbeafe;
    color: #2563eb;
}
.patient-type-group {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.field-title {
    font-size: 13px;
    font-weight: 900;
    color: #14532d;
    white-space: nowrap;
}

.patient-type-option {
    height: 37px;
    cursor: pointer;
    border: 1px solid rgba(22, 101, 52, 0.18);
    border-radius: 10px !important;
    padding: 0 14px;
    background: linear-gradient(180deg, #ffffff, #f8fffb);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    transition: 0.2s ease;
}

.patient-type-option:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 163, 74, 0.55);
    box-shadow: 0 12px 24px rgba(22, 101, 52, 0.14);
}

.patient-type-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
    margin: 0;
    border-radius: 10px !important;
    border: 2px solid #a7f3d0;
    background: #ffffff;
    display: grid;
    place-content: center;
    flex-shrink: 0;
    transition: 0.18s ease;
}

.patient-type-option input[type="radio"]::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 10px !important;
    transform: scale(0);
    background: #16a34a;
    transition: 0.18s ease;
}

.patient-type-option input[type="radio"]:checked {
    border-color: #16a34a;
    background: #ecfdf5;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.patient-type-option input[type="radio"]:checked::before {
    transform: scale(1);
}

.patient-type-option:has(input[type="radio"]:checked) {
    border-color: #16a34a;
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
    color: #065f46;
    box-shadow: 0 12px 26px rgba(22, 163, 74, 0.18);
}

@media (max-width: 980px) {
    .patient-type-group {
        grid-column: 1 / 3;
    }
}

@media (max-width: 650px) {
    .patient-type-group {
        grid-column: 1;
        grid-template-columns: auto 1fr 1fr;
        gap: 7px;
    }

    .field-title {
        font-size: 12px;
    }

    .patient-type-option {
        height: 42px;
        padding: 0 8px;
        font-size: 11px;
        border-radius: 10px !important;
    }

    .patient-type-option input[type="radio"] {
        width: 17px;
        height: 17px;
    }

    .patient-type-option input[type="radio"]::before {
        width: 8px;
        height: 8px;
    }
}
.field-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.field-title-icon {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px !important;
    background: #dcfce7;
    color: #16a34a;
    font-size: 10px;
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.18);
}
.field-title,
.field-title-icon,
.patient-type-option,
.patient-type-option span {
    user-select: none;
    -webkit-user-select: none;
}

.field-title {
    cursor: default;
}

.patient-type-option {
    cursor: pointer;
}


/* Global 2px radius override */
*, *::before, *::after { border-radius: 10px !important; }

/* Appointment form date-selection gate */
.form-lock-notice {
    grid-column: 2 / 4;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.form-lock-notice[hidden] {
    display: none !important;
}

.form-lock-icon {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 30px;
    border-radius: 10px !important;
    background: #e2e8f0;
    font-size: 15px;
}

[data-date-dependent] {
    transition: opacity 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

[data-date-dependent].is-date-locked {
    opacity: 0.52;
    filter: grayscale(0.22);
    pointer-events: none;
    user-select: none;
}

.appointment-form input:disabled,
.appointment-form textarea:disabled,
.appointment-form select:disabled {
    background: #eef2f7 !important;
    color: #94a3b8 !important;
    border-color: #dbe3ea !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.patient-type-option:has(input:disabled) {
    background: #eef2f7;
    color: #94a3b8;
    border-color: #dbe3ea;
    cursor: not-allowed;
    box-shadow: none;
}

.submit-btn:disabled,
.clear-btn:disabled {
    background: #dbe3ea !important;
    color: #94a3b8 !important;
    border-color: #cbd5e1 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.submit-btn:disabled::after {
    display: none;
}

@media (max-width: 980px) {
    .form-lock-notice {
        grid-column: 1 / 3;
    }
}

@media (max-width: 650px) {
    .form-lock-notice {
        grid-column: 1;
        font-size: 11px;
    }
}
