/* ==========================================================================
   Базовые стили
   ========================================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* ==========================================================================
   Контейнер и общие элементы
   ========================================================================== */
.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
}

/* ==========================================================================
   Навигационные ссылки
   ========================================================================== */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
    background-color: #f8f9fa;
}

.nav-icon {
    font-size: 36px;
    margin-right: 25px;
    min-width: 50px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.nav-text h2 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    color: #2c3e50;
    font-weight: 600;
}

.nav-text p {
    margin: 0;
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

/* ==========================================================================
   Стили формы
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* ==========================================================================
   Стили полей ввода
   ========================================================================== */
input[type="text"],
input[type="tel"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    height: 40px;
    line-height: 20px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Специальные стили для полей с датой */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 10px;
}

/* ==========================================================================
   Стили чекбоксов
   ========================================================================== */
.checkbox-group {
    margin: 20px 0;
    padding: 0;
}

.checkbox-item {
    position: relative;
    margin-bottom: 15px;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-item label {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.checkbox-item label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked + label:before {
    background-color: #3498db;
    border-color: #3498db;
}

.checkbox-item input[type="checkbox"]:checked + label:after {
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ==========================================================================
   Стили кнопок
   ========================================================================== */
.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* ==========================================================================
   Состояния и эффекты
   ========================================================================== */
input:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.checkbox-item input[type="checkbox"]:focus + label:before {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    outline: none;
}

/* ==========================================================================
   Дополнительные элементы
   ========================================================================== */
   .italic-header {
    margin: 15px 0;
    padding: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-style: italic;
   }

   .italic-text {
    margin: 15px 0;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
}

.italic-text p {
    margin: 0;
    color: #000000;
    font-style: italic;
    font-size: 16px;
}

.optional-text {
    background-color: #f8f9fa;
    border-left: 3px solid #3498db;
    padding-left: 16px;
    padding-bottom: 10px;
}

.form-note {
    font-size: 0.85em;
    color: #666;
    margin: 8px 0 15px 35px;
    font-style: italic;
    line-height: 1.4;
}
.form-divider {
    border-top: 2px solid #3498db;
    margin: 40px 0;
    text-align: center;
    position: relative;
}

.form-divider::after {
    content: "▼";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 0 10px;
    color: #3498db;
    font-size: 14px;
}

/* ==========================================================================
   Медиа-запросы
   ========================================================================== */
@media (max-width: 768px) {
    input[type="text"],
    input[type="tel"],
    input[type="date"],
    textarea {
        min-height: 44px;
    }
}