/* ========================================
   MedFlex Appointment Form Styles
   ======================================== */

.medflex-appointment-form {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 32px;
}

.medflex-form-title {
    text-align: center;
    margin-bottom: 32px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    color: #FAF8F6;
    font-weight: 600;
}

.medflex-appointment-form .section-subtitle {
    color: rgba(250, 248, 246, 0.8) !important;
}

/* Поле */
.medflex-field {
    margin-bottom: 20px;
}

/* Лейбл */
.medflex-field label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

/* Селект */
.medflex-select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.medflex-select:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.medflex-select:focus {
    border-color: #E8C9A0;
    background: rgba(255, 255, 255, 0.1);
}

.medflex-select option {
    background: #2a2a2a;
    color: #fff;
    padding: 10px;
}

/* Инпут */
.medflex-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.medflex-input:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.medflex-input:focus {
    border-color: #E8C9A0;
    background: rgba(255, 255, 255, 0.1);
}

.medflex-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Слоты времени */
.medflex-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.medflex-time-slot {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

.medflex-time-slot:hover {
    border-color: #E8C9A0;
    background: rgba(232, 201, 160, 0.1);
}

.medflex-time-slot.selected {
    border-color: #E8C9A0;
    background: #E8C9A0;
    color: #1a1a1a;
    font-weight: 600;
}

/* Кнопка отправки */
.medflex-submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #B45F56, #8E453C);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.medflex-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.medflex-submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(180, 95, 86, 0.4);
}

.medflex-submit-btn:not(:disabled):active {
    transform: translateY(0);
}

/* Сообщения */
.medflex-message {
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
}

.medflex-message.success {
    background: rgba(250, 248, 246, 0.12);
    color: #FAF8F6;
}

.medflex-message.error {
    background: rgba(255, 77, 77, 0.15);
    color: #FF4D4D;
}

/* Текст согласия */
.medflex-consent {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 12px;
    line-height: 1.5;
}

/* ========================================
   Табы
   ======================================== */

.medflex-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.medflex-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
}

.medflex-tab:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.medflex-tab.active {
    background: rgba(232, 201, 160, 0.15);
    color: #E8C9A0;
    font-weight: 600;
}

.medflex-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.medflex-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Текстовое поле */
.medflex-input[type="email"],
textarea.medflex-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    min-height: 44px;
}

textarea.medflex-input:focus {
    border-color: #E8C9A0;
    background: rgba(255, 255, 255, 0.1);
}

textarea.medflex-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}



/* Адаптив */
@media (max-width: 768px) {
    .medflex-appointment-form {
        padding: 28px 20px;
    }

    .medflex-form-title {
        font-size: 22px;
    }

    .medflex-time-slots {
        gap: 8px;
    }

    .medflex-time-slot {
        padding: 8px 14px;
        font-size: 14px;
    }
}

.website-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}
