* {
            box-sizing: border-box;
font-family: "Montserrat", sans-serif;
        }

        body {
            margin: 0;

            background: linear-gradient(135deg, #f5f7fa, #e8ecf3);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            align-items: flex-start;

        }

        html, body {
            max-width: 100%;
            overflow-x: hidden;
        }

        .card {
            width: 100%;
            max-width: 420px;
            background: white;
            border-radius: 18px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        }

        h2 {
            margin-top: 0;
            text-align: center;
            font-weight: 600;
            margin-bottom: 20px;
        }
input,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    transition: 0.2s;
    box-sizing: border-box;
}

/* RESET ТОЛЬКО ДЛЯ ТЕКСТОВЫХ ПОЛЕЙ */
input[type="text"],
input[type="tel"],
textarea {
    -webkit-appearance: none;
    appearance: none;
}

/* RADIO (ПРАВИЛЬНО) */
input[type="radio"] {
    accent-color: #4CAF50;
}

/* DATE (БЕЗ ЛОМАНИЯ iOS) */
input[type="date"] {
    width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    -webkit-appearance: none;
        appearance: none;
        display: block;

    background: #fff !important;
    color: #222;
    -webkit-text-fill-color: #222;
    color-scheme: light;
}

#country {
       width: 100%;
       padding: 7px 34px 7px 6px;
       border-radius: 10px;
       border: 1px solid #dddddd;
       margin-top: 10px;

       height: 43px;
       background-color: #fff;
       background-position: calc(100% - 92px) center;
       background-repeat: no-repeat;
       box-sizing: border-box;
       appearance: none;
       color: #222;
           -webkit-text-fill-color: #222;
}

/* FOCUS СОСТОЯНИЕ (ОТДЕЛЬНО) */

select:focus-visible
 {
    border-color: #4CAF50!important;
        outline: none;
}

input:focus,
textarea:focus,
select:focus
 {
    border-color: #4CAF50;
}


        input:focus,
        textarea:focus,
         select:focus  {
            border-color: #4CAF50;
        }

        textarea {
            resize: none;
            height: 90px;
        }

        .date {
            margin-top: 0;
        }

        /* СЛОТЫ */

        .slots {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
        }

        .slot {
            padding: 10px 14px;
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            background: #eef2f7;
            transition: 0.2s;
        }

        .slot:hover {
            transform: scale(1.05);
        }

        .free {
            background: #dff7e3;
        }

        .booked {
            background: #ffd9d9;
            cursor: not-allowed;
            opacity: 0.6;
        }

        .selected {
            background: #4CAF50 !important;
            color: white;
        }

        .selected-info {
            margin-top: 12px;
            font-size: 14px;
            color: #555;
            text-align: center;
        }

        /* RADIO */

        .consultation-type {
            margin-top: 18px;
        }

        .radio-title {
            margin-bottom: 10px;
            font-size: 14px;
            font-weight: 600;
            color: #333;
        }

        .radio-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            margin-bottom: 10px;
            background: #f7f9fc;
            border: 1px solid #e3e7ee;
            border-radius: 12px;
            cursor: pointer;
            transition: 0.2s;
            font-size: 14px;
        }

        .radio-wrap:hover {
            background: #eef3f9;
        }

        .radio-wrap input[type="radio"] {
            width: 18px;
            height: 18px;
            accent-color: #4CAF50;
            margin: 0;
            flex-shrink: 0;
        }

        /* BUTTON */

        button {
            width: 100%;
            margin-top: 20px;
            padding: 14px;
            border: none;
            border-radius: 12px;
            background: #4CAF50;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: 0.2s;
            font-weight: 600;
        }

        button:hover {
            background: #43a047;
        }

        /* POPUP */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    z-index: 999;
    padding: 20px;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup {
    width: 100%;
    max-width: 360px;
    background: white;
    border-radius: 22px;
    padding: 30px 25px;
    text-align: center;
    transform: translateY(20px);
    transition: 0.25s;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.popup-overlay.active .popup {
    transform: translateY(0);
}

.popup-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: white;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.popup-icon.success {
    background: #4CAF50;
}

.popup-icon.error {
    background: #ff5252;
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.popup-text {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
}

.popup-button {
    margin-top: 22px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #4CAF50;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.popup-button:hover {
    background: #43a047;
}

.no-slots {
    padding: 15px;
    text-align: center;
    color: #888;
    font-size: 14px;
}