/* Определение пользовательских шрифтов */
@font-face {
    font-family: 'Labor';
    src: url('./fonts/labor.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/inter.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Класс для использования шрифта Labor */
.labor {
    font-family: 'Labor', Arial, sans-serif;
    background: linear-gradient(to bottom, #FFF7F0, #B2A090);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for older browsers */
}

/* Класс для использования шрифта Inter */
.inter {
    font-family: 'Inter', Arial, sans-serif;
}

/* Размеры для заголовков */
p.header.labor {
    font-size: 128px;
    margin-bottom: -32px;
}

p.subtitle.labor {
    font-size: 48px;
}

/* Главный блок высотой 100vh */
main {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Фоновый элемент */
.main-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Стили для контента в основном блоке */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.header {
    margin-bottom: 0;
}

.subtitle {
    margin-bottom: 0;
}

.access-btn {
    width: 326px;
    height: 52px;
    font-size: 18px;
    background: linear-gradient(to right, #EA8939, #E7863B);
    color: white;
    border: 2px solid #FFA45D;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: -8px;
}

.access-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-text {
    color: #FFF7F0;
    font-size: 18px;
}

.btn-separator,
.btn-price {
    color: #F8D4B8;
}

.countdown {
    font-size: 18px;
    color: #DCD5CE;
}

/* Футер */
footer {
    background-color: #0F1517;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Содержимое модального окна */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Кнопка закрытия модального окна */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

/* Заголовок модального окна */
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* Ссылки в модальном окне */
.modal-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
}

.modal-link {
    color: #EA8939;
    text-decoration: none;
    font-weight: bold;
}

.modal-link:hover {
    text-decoration: underline;
}

/* Группировка полей ввода */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

#submitBtn {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    background-color: #cccccc; /* Gray background when disabled */
    color: #666666;
    border: 2px solid #999999; /* Gray border when disabled */
    border-radius: 5px;
    font-size: 16px;
    cursor: not-allowed;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
}

#submitBtn:enabled {
    background: linear-gradient(to right, #EA8939, #E7863B);
    color: white;
    border: 2px solid #FFA45D;
    cursor: pointer;
    opacity: 1;
}

#submitBtn:enabled:hover {
    opacity: 0.9 !important;
    transform: scale(1.02);
}