/* static/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.gto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

input, select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Стилизация стрелок для input type="number" (возраст) */
input[type="number"] {
    appearance: textfield; /* Стандартное свойство для совместимости */
    -moz-appearance: textfield; /* Скрыть стрелки в Firefox */
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button !important; /* Показать стрелки в WebKit */
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    margin: 0;
    position: relative;
}

input[type="number"]::-webkit-inner-spin-button:hover,
input[type="number"]::-webkit-inner-spin-button:active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

input[type="number"]::-webkit-inner-spin-button::before,
input[type="number"]::-webkit-inner-spin-button::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    left: 50%;
    top: 50%;
}

input[type="number"]::-webkit-inner-spin-button::before {
    transform: translate(-50%, -50%) translateY(-2px);
}

input[type="number"]::-webkit-inner-spin-button::after {
    transform: translate(-50%, -50%) translateY(2px);
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.result-container {
    margin-top: 25px;
    padding: 20px;
    border-radius: 10px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .form-wrapper {
        padding: 30px 20px;
        margin: 10px; /* Отступы от краёв экрана */
    }
    
    h1 {
        font-size: 20px;
    }

    /* Touch-friendly: Большие кнопки и инпуты */
    input, select, button {
        font-size: 18px; /* Больше для пальцев */
        min-height: 50px; /* Высота для тача */
        touch-action: manipulation; /* Быстрый отклик */
    }

    .submit-btn {
        min-height: 55px;
    }
}

/* Панелька с кнопками скачивания */
.download-panel {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Общие стили кнопок */
.download-panel button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.download-panel button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.download-panel button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Разные градиенты для DOCX и PDF */
.download-panel button.docx-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.download-panel button.pdf-btn {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}