* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

:root {
    --bg: #071018;
    --bg2: #0d1823;
    --card: rgba(9, 20, 30, .92);
    --card2: rgba(10, 24, 36, .82);
    --text: #ffffff;
    --muted: #cfd8e3;
    --border: rgba(200, 169, 106, .28);
    --field: rgba(255,255,255,.035);
    --fieldBorder: rgba(255,255,255,.16);
    --gold: #c8a96a;
    --gold2: #efcd73;
    --shadow: 0 26px 85px rgba(0,0,0,.45);
    --danger: #9f2634;
}

body.light-theme {
    --bg: #f8f5ef;
    --bg2: #ffffff;
    --card: rgba(255,255,255,.94);
    --card2: rgba(255,255,255,.88);
    --text: #111827;
    --muted: #657083;
    --border: rgba(200, 169, 106, .42);
    --field: #ffffff;
    --fieldBorder: #dfe5ee;
    --shadow: 0 22px 70px rgba(30, 41, 59, .14);
}

body {
    background:
        radial-gradient(circle at 10% 10%, rgba(200,169,106,.14), transparent 28%),
        linear-gradient(135deg, var(--bg), var(--bg2));
    min-height: 100vh;
    color: var(--text);
    padding: 0;
    direction: rtl;
}

.hero-header {
    min-height: 280px;
    position: relative;
    overflow: hidden;
    padding: 26px 20px 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(90deg, rgba(7,16,24,.98), rgba(7,16,24,.78), rgba(7,16,24,.44)),
        url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1600&q=80') center/cover;
    border-bottom: 1px solid var(--border);
}

.light-theme .hero-header {
    background:
        linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.82), rgba(255,255,255,.42)),
        url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.hero-header::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -55px;
    height: 110px;
    background: var(--bg);
    border-top: 3px solid var(--gold);
    border-radius: 50% 50% 0 0;
    transition: .35s;
}

.hero-art {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(200,169,106,.16), transparent 22%),
        radial-gradient(circle at 18% 80%, rgba(200,169,106,.12), transparent 28%);
    pointer-events: none;
}

.theme-toggle {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    border: 1px solid rgba(200,169,106,.55);
    background: rgba(7,16,24,.62);
    color: var(--gold2);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.light-theme .theme-toggle {
    background: #fff;
    color: #111827;
}

.top-logo {
    position: relative;
    z-index: 2;
    width: 108px;
    height: 108px;
    margin-bottom: 12px;
}

.top-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.35));
}

.hero-title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title h1 {
    font-size: 42px;
    line-height: 1.1;
    color: var(--gold2);
    font-weight: 900;
    margin-bottom: 8px;
}

.hero-title p {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.light-theme .hero-title p,
.light-theme .hero-title strong {
    color: #111827;
}

.hero-line {
    color: var(--gold);
    margin: 10px auto;
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-line::before,
.hero-line::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-line::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-line span {
    padding: 0 12px;
}

.hero-title strong {
    color: var(--gold2);
    font-size: 17px;
    letter-spacing: .2px;
}

.booking-container {
    width: min(1160px, calc(100% - 32px));
    margin: -18px auto 45px;
    position: relative;
    z-index: 4;
}

.booking-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 34px;
    backdrop-filter: blur(16px);
}

.booking-header {
    text-align: center;
    padding-bottom: 26px;
    margin-bottom: 26px;
    position: relative;
}

.booking-header::after {
    content: "";
    width: 240px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.booking-header h1 {
    font-size: 34px;
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 900;
}

.booking-header h1::before,
.booking-header h1::after {
    content: "•";
    color: var(--gold);
    margin: 0 12px;
}

.booking-header p {
    color: var(--muted);
    font-size: 17px;
    font-weight: 700;
}

form {
    display: grid;
    gap: 18px;
}

.form-section {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.form-section:first-of-type {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-section:first-of-type .form-group:nth-child(3),
.form-section:first-of-type .form-group:nth-child(4) {
    grid-column: span 1;
}

.form-group {
    margin-bottom: 0;
}

.form-group label,
.form-section > label {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 10px;
}

.form-group label::after,
.form-section > label::after {
    color: var(--gold);
    margin-right: 7px;
}

input, select, textarea {
    width: 100%;
    min-height: 54px;
    border-radius: 12px;
    border: 1px solid var(--fieldBorder);
    background: var(--field);
    color: var(--text);
    padding: 12px 15px;
    font-size: 15px;
    outline: none;
    transition: .25s;
}

input::placeholder, textarea::placeholder {
    color: #8a95a5;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200,169,106,.13);
}

.phone-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
}

#case_type {
    min-height: 58px;
}

.calendar-wrapper {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.calendar-header button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #111827;
    font-weight: 900;
    font-size: 22px;
    cursor: pointer;
}

#monthYear {
    font-weight: 900;
    color: var(--text);
    font-size: 20px;
}

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

.weekdays span {
    color: var(--text);
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 6px;
}

.calendar-day,
.empty-day {
    min-height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
    cursor: pointer;
    transition: .22s;
    font-weight: 800;
}

.light-theme .calendar-day,
.light-theme .empty-day {
    background: #f8fafc;
    border-color: #edf2f7;
}

.calendar-day:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #111827;
    border-color: var(--gold);
}

.calendar-day.disabled,
.calendar-day.booked {
    opacity: .35;
    pointer-events: none;
}

.time-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.time-card {
    border: 1px solid var(--border);
    background: var(--field);
    color: var(--text);
    border-radius: 12px;
    padding: 13px 10px;
    min-height: 70px;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 6px 10px;
    align-items: center;
    cursor: pointer;
    transition: .25s;
}

.time-card:hover,
.time-card.selected {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #111827;
    border-color: var(--gold);
    transform: translateY(-2px);
}

.time-icon {
    grid-row: span 2;
    color: var(--gold);
}

.time-card.selected .time-icon,
.time-card:hover .time-icon {
    color: #111827;
}

.time-label {
    font-weight: 900;
    font-size: 16px;
}

.time-card small {
    color: var(--muted);
    font-weight: 700;
}

.time-card.selected small,
.time-card:hover small {
    color: #1f2937;
}

.submit-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 17px 22px;
    background: linear-gradient(135deg, #c99638, var(--gold2));
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 14px 30px rgba(200,169,106,.23);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(200,169,106,.32);
}

.notifications-info {
    text-align: center;
    color: var(--muted);
    margin-top: 18px;
    font-weight: 700;
    font-size: 14px;
}

.notifications-info span {
    color: var(--gold);
    margin-left: 6px;
}

@media (min-width: 920px) {
    form {
        grid-template-columns: 1fr 1fr;
    }

    .form-section:first-of-type,
    .form-group:has(#case_type),
    .submit-btn,
    .notifications-info {
        grid-column: 1 / -1;
    }

    .form-group:has(#case_type) {
        background: var(--card2);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 18px;
    }
}

@media (max-width: 920px) {
    body {
        padding: 0;
    }

    .hero-header {
        min-height: 230px;
        padding: 18px 12px 34px;
    }

    .theme-toggle {
        top: 12px;
        left: 12px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .top-logo {
        width: 82px;
        height: 82px;
    }

    .hero-title h1 {
        font-size: 30px;
    }

    .hero-title p {
        font-size: 16px;
    }

    .hero-line {
        width: 190px;
    }

    .booking-container {
        width: calc(100% - 20px);
        margin-top: -10px;
        margin-bottom: 25px;
    }

    .booking-card {
        padding: 18px;
        border-radius: 22px;
    }

    .booking-header h1 {
        font-size: 24px;
        line-height: 1.5;
    }

    .booking-header p {
        font-size: 14px;
    }

    .form-section:first-of-type {
        grid-template-columns: 1fr;
    }

    .phone-group {
        grid-template-columns: 110px 1fr;
    }

    .weekdays,
    .calendar-days {
        gap: 6px;
    }

    .calendar-day,
    .empty-day {
        min-height: 42px;
        border-radius: 12px;
        font-size: 13px;
    }

    .calendar-wrapper {
        padding: 14px;
    }

    .time-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-card {
        min-height: 58px;
        padding: 10px;
    }
}

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

    .calendar-day,
    .empty-day {
        min-height: 38px;
        font-size: 12px;
    }

    .weekdays span {
        font-size: 12px;
    }
}


/* FINAL FIXES */
.hero-header{
    background:
    linear-gradient(90deg, rgba(7,16,24,.78), rgba(7,16,24,.55), rgba(7,16,24,.35)),
    url('office.png') center center/cover no-repeat !important;
}

.light-theme .hero-header{
    background:
    linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.55), rgba(255,255,255,.30)),
    url('office.png') center center/cover no-repeat !important;
}

select,
option{
    background:#0b1622 !important;
    color:#ffffff !important;
}

.light-theme select,
.light-theme option{
    background:#ffffff !important;
    color:#111827 !important;
}

select option{
    padding:12px;
}
