html, body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('../images/konsulta_landingpage.png') center center / cover no-repeat;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
}

.form-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px 80px;
    position: relative;
    z-index: 1;
}


.form-card {
    width: 100%;
    max-width: 720px;
    border: none;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
}

.form-card .card-body {
    padding: 40px 35px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-weight: 700;
    color: #c62828;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 0;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.form-label {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
}

.form-control {
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #d9dee3;
    box-shadow: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #c62828;
    box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.12);
}

.readonly-field {
    background-color: #f8f9fa;
    font-weight: 500;
}

.date-box {
    background: #f8f9fb;
    border: 1px dashed #cfd8dc;
    border-radius: 14px;
    padding: 16px;
}

.btn-date {
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    min-width: 190px;
}

.btn-submit {
    border-radius: 50px;
    padding: 14px;
    font-weight: 700;
    font-size: 16px;
}

.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background: #c62828;
    color: #fff;
    border-bottom: none;
    padding: 16px 20px;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 25px;
}

footer {
    position: relative;
    z-index: 1;
    color: #000;
    padding-bottom: 20px;
}

.calendar-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}

.calendar-container {
    background: #fff;
    border-radius: 18px;
    padding: 10px 5px 0;
}

.calendar-header h4 {
    font-size: 22px;
    color: #202124;
}

.calendar-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 24px;
    line-height: 1;
    border: 1px solid #dee2e6;
}

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

.calendar-weekdays {
    margin-bottom: 10px;
}

.calendar-weekdays div {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #5f6368;
    padding: 8px 0;
}

.calendar-day {
    height: 72px;
    border-radius: 14px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #202124;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.calendar-day.not-open-day {
    background-color: #6c757d;
    border: 1px solid #6c757d;
    color: #fff;
    cursor: not-allowed;
    opacity: 1;
}

.calendar-day.not-open-day .calendar-day-number,
.calendar-day.not-open-day .calendar-day-count {
    color: #fff;
}

.calendar-day.weekend {
    background: #f3f4f6;
    color: #b9c0c7;
    border-color: #e5e7eb;
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.muted {
    color: #c0c4c9;
    cursor: default;
    background: #fafafa;
    border-color: #f1f3f5;
}

.calendar-day.disabled {
    background: #f8f9fa;
    color: #d0d4d9;
    cursor: not-allowed;
    border-color: #edf0f2;
}

.calendar-day.today {
    border: 2px solid #0d6efd;
}

.calendar-day.available-day {
    background: #eaf7ee;
    border-color: #198754;
    color: #146c43;
}

.calendar-day.full-day {
    background: #fdeaea;
    border-color: #dc3545;
    color: #b02a37;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: #0d6efd !important;
    color: #fff !important;
    border-color: #0d6efd !important;
}

.calendar-day-number {
    font-size: 16px;
    font-weight: 700;
}

.calendar-day-count {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 600;
}

@media (max-width: 576px) {
    .calendar-day {
        height: 62px;
    }

    .calendar-day-number {
        font-size: 14px;
    }

    .calendar-day-count {
        font-size: 10px;
    }

    .form-card .card-body {
        padding: 28px 20px;
    }

    .form-title {
        font-size: 24px;
    }


}