/* Общие стили для мобильных */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1b2a 100%);
    color: #fff;
    min-height: 100vh;
    background-image: url('/images/convertio.in_93269993-0-image-m-29_1734520390405.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Изменено для мобильных */
    background-blend-mode: overlay;
    background-color: rgba(13, 27, 42, 0.9);
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Хедер - мобильная версия */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.logo i {
    font-size: 28px;
    color: #FFD700;
}

/* Основной контент - мобильная версия */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
    margin-bottom: 25px;
}

/* Левая колонка - мобильная версия */
.description-section {
    padding-right: 0;
}

.title {
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    text-align: center;
    line-height: 1.2;
}

.subtitle {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: center;
    padding: 0 10px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 15px;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    transition: transform 0.2s ease;
    backdrop-filter: blur(5px);
}

.feature:active {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.feature i {
    font-size: 28px;
    color: #4CAF50;
    margin-bottom: 12px;
    display: block;
    text-align: center;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #FFD700;
    text-align: center;
}

.feature p {
    color: #b0b0b0;
    line-height: 1.5;
    font-size: 14px;
    text-align: center;
}

/* Правая колонка - форма (мобильная версия) */
.booking-section {
    background: rgba(26, 42, 58, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
}

.booking-form h2 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.booking-form h2 i {
    color: #4CAF50;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 15px;
}

/* Даты - мобильная версия */
.date-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.date-option:active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.date-option.selected {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
}

.date-day {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    line-height: 1;
}

.date-month {
    font-size: 13px;
    color: #b0b0b0;
    text-transform: uppercase;
    margin: 5px 0;
    line-height: 1;
}

.date-year {
    font-size: 13px;
    color: #888;
    line-height: 1;
}

/* Поля ввода - мобильная версия */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #4CAF50;
    font-size: 18px;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 12px 14px 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.12);
}

.input-with-icon input::placeholder {
    color: #888;
    font-size: 15px;
}

/* Увеличение области клика для полей ввода на мобильных */
.input-with-icon input {
    min-height: 50px;
}

/* Время - мобильная версия */
.time-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.time-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.time-option:active:not(.disabled) {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.time-option.selected {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.time-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 8px;
    line-height: 1;
}

.time-available {
    font-size: 11px;
    color: #4CAF50;
    margin-top: 5px;
    line-height: 1;
}

.time-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #4CAF50;
    font-size: 14px;
}

.time-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* Кнопка - мобильная версия */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 56px;
}

.submit-btn:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Информация о доступности - мобильная версия */
.availability-info {
    margin-top: 15px;
    padding: 12px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 8px;
    border-left: 4px solid #2196F3;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #90CAF9;
    font-size: 14px;
    line-height: 1.4;
}

.availability-info i {
    color: #2196F3;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Футер - мобильная версия */
.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

.footer p {
    margin: 5px 0;
}

/* Модальное окно - мобильная версия */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1b2a 100%);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    border: 2px solid #FFD700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
}

.success-icon {
    color: #4CAF50;
    font-size: 22px;
}

.close-modal {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}

.close-modal:active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    color: #e0e0e0;
    font-size: 15px;
}

.booking-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.booking-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.booking-details p:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-note {
    font-style: italic;
    color: #4CAF50;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    font-size: 14px;
}

/* Медиа-запросы для адаптации */

/* Планшеты и маленькие ноутбуки */
@media (min-width: 768px) {
    .container {
        padding: 25px;
        max-width: 750px;
    }
    
    .title {
        font-size: 40px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .feature {
        flex: 1;
        min-width: 200px;
    }
    
    .date-options {
        flex-direction: row;
        gap: 15px;
    }
    
    .date-option {
        flex: 1;
    }
    
    .time-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-section {
        padding: 25px;
    }
}

/* Десктопы */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 30px;
    }
    
    .main-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .description-section {
        padding-right: 20px;
    }
    
    .features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .date-options {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .date-option:hover {
        border-color: #4CAF50;
        background: rgba(76, 175, 80, 0.1);
    }
    
    .time-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-option:hover:not(.disabled) {
        border-color: #4CAF50;
        background: rgba(76, 175, 80, 0.1);
    }
    
    .submit-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    }
    
    .close-modal:hover {
        color: white;
    }
}

/* Очень маленькие мобильные (до 360px) */
@media (max-width: 360px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    .booking-section {
        padding: 15px;
    }
    
    .date-day {
        font-size: 24px;
    }
    
    .date-month,
    .date-year {
        font-size: 12px;
    }
    
    .input-with-icon input {
        padding: 12px 10px 12px 38px;
        font-size: 15px;
    }
    
    .input-with-icon i {
        font-size: 16px;
        left: 10px;
    }
    
    .submit-btn {
        padding: 16px;
        font-size: 16px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .main-content {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .feature {
        padding: 15px 10px;
    }
    
    .booking-section {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .date-option,
    .time-option {
        padding: 12px 8px;
    }
    
    .submit-btn {
        padding: 14px;
        margin-top: 10px;
    }
}

/* iOS Safari специфичные стили */
@supports (-webkit-touch-callout: none) {
    .submit-btn,
    .date-option,
    .time-option {
        cursor: default;
    }
    
    .input-with-icon input {
        font-size: 16px; /* Предотвращает зум в iOS */
    }
}

/* Улучшение для темной темы */
@media (prefers-color-scheme: dark) {
    body {
        background-color: rgba(13, 27, 42, 0.95);
    }
}

/* Анимация появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature, .date-option, .time-option, .booking-section {
    animation: fadeInUp 0.3s ease forwards;
}

/* Улучшение доступности для сенсорных устройств */
@media (pointer: coarse) {
    .date-option,
    .time-option,
    .submit-btn {
        min-height: 44px; /* Минимальный размер для пальцев */
    }
    
    .input-with-icon input {
        min-height: 44px;
    }
}