/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

html, body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f9fafb;
    padding-top: 60px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
    flex: 1;
}

/* Шапка */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.logo img {
    width: 42px;
    height: 42px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0.2px;
    display: inline-block;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #333;
    border: 1px solid #c2c2c2;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.btn-primary {
    background: #ffffffff;
    color: #1a1a1aff;
    border: 1px solid #000000ff;
}

.btn-primary:hover {
    background: #000000ff;
    color: #ffffffff;
}

/* Анкета */
.survey-container {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.survey-container h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #222;
    text-align: center;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    -webkit-appearance: none;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid #eee;
    font-size: 14px;
}

.radio-group label:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.next-btn,
.prev-btn,
#complete-btn {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.next-btn,
#complete-btn {
    background: #000;
    color: white;
    border: none;
}

.prev-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #000;
}

.next-btn:hover,
#complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #333;
}

.prev-btn:hover {
    background: #f0f0f0;
    color: #000;
}

.field-error {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message {
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #e53e3e;
    font-size: 14px;
}

.success-message {
    background-color: #f0fff4;
    color: #2f855a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2f855a;
}

.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Подвал */
footer {
    flex-shrink: 0;
    background-color: #1a202c;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

/* Адаптивность */
@media (max-width: 768px) {
    .survey-container {
        padding: 15px;
    }

    .survey-container h2 {
        font-size: 18px;
    }

    .header-buttons {
        gap: 10px;
    }

    .header-buttons .btn {
        padding: 11px 12px;
        font-size: 10px;
        height: 40px;
    }

    .header-buttons .btn-primary {
        min-width: 120px;
    }
}

@media (max-width: 400px) {
    .header-buttons {
        gap: 5px;
    }

    .header-buttons .btn {
        padding: 8px 10px;
        height: 36px;
    }

    .header-buttons .btn-primary {
        min-width: 110px;
    }
}