/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #000000;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #1a202c;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #2d3748;
    overflow: hidden;
}

/* Заголовок */
.header {
    background: linear-gradient(135deg, #498f95 0%, #498f95 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    height: 80px;
    width: auto;
    filter: brightness(1.1);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Форма */
.survey-form {
    padding: 40px;
    background: #1a202c;
    color: #e2e8f0;
}

.form-section {
    max-width: 720px;  /* уже контейнера, чтобы выглядеть как часть формы */
    margin: 0 auto 40px auto; /* центрируем и сохраняем отступ снизу */
    background: #1a202c;   /* общий фон секции, как у формы */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #4a5568;
}

.form-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.section-subtitle {
    color: #a0aec0 !important;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

/* Чекбоксы */
.checkbox-group {
    background: #2d3748;   /* как у карточек */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #4a5568;
    display: grid;
    gap: 8px;  /* уменьшили отступ между чекбоксами */
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #4a5568 !important;
    user-select: none;
    position: relative;
    color: #e2e8f0 !important;
    margin-bottom: 8px;
}

.checkbox-item span:not(.checkmark),
.checkbox-item {
    color: #e2e8f0 !important;
}

.checkbox-item:hover span:not(.checkmark),
.checkbox-item:hover {
    color: #ffffff !important;
}

/* Принудительные стили для всех чекбоксов - убираем JavaScript стили */
.checkbox-item[style] {
    color: #e2e8f0 !important;
    background: #4a5568 !important;
    border-color: transparent !important;
    transform: none !important;
}

.checkbox-item[style]:hover {
    color: #ffffff !important;
    background: #498f95 !important;
    border-color: #498f95 !important;
    transform: translateY(-1px) !important;
}

/* Для выбранных чекбоксов */
.checkbox-item[style*="scale(1.02)"],
.checkbox-item.selected {
    color: #ffffff !important;
    background: #498f95 !important;
    border-color: #498f95 !important;
    transform: translateY(-1px) !important;
}

.checkbox-item:hover {
    background: #498f95;
    border-color: #498f95;
    transform: translateY(-1px);
}

.checkbox-item:active {
    transform: translateY(0);
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #718096;
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    background-color: #2d3748;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: #498f95 !important;
    border-color: #498f95 !important;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: "✓" !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
}

.privacy-checkbox {
    background: #4a5568 !important;  /* такой же фон как у обычных чекбоксов */
    border: 2px solid transparent !important;
    font-weight: 500;
    color: #e2e8f0 !important;
    padding: 16px 20px !important;  /* увеличили padding для важности */
}

.privacy-checkbox:hover {
    background: #498f95 !important;
    border-color: #498f95 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Поля ввода */
.form-grid {
    background: #2d3748;   /* как у карточек */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #4a5568;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Changed from auto-fit to fixed 2 columns */
    gap: 20px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 15px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2; /* вместо 1 / -1 для контроля ширины */
}

.form-group label {
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid #4a5568;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #1a202c;
    color: #e2e8f0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #498f95;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.2);
}

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

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: #498f95;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(73, 143, 149, 0.4);
    background: #5aa4aa;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

.submit-btn.loading .btn-text {
    opacity: 0.7;
}

.submit-btn.loading .loading-spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Сообщения об ошибках */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid #c53030;
    display: none;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .survey-form {
        padding: 30px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkbox-item {
        padding: 10px 12px;
    }
}

/* Opening Hours Styles */
.opening-hours-container {
    background: #2d3748;   /* как у карточек */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #4a5568;
    display: grid;
    gap: 12px;  /* уменьшили отступ */
    margin-top: 20px;
}

.day-schedule {
    background: #1a202c;
    border: 2px solid #4a5568;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.day-schedule:hover {
    border-color: #498f95;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.2);
}

.day-header {
    margin-bottom: 12px;
}

.day-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #e2e8f0 !important;
}

.day-checkbox input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #498f95;
}

.day-name {
    user-select: none;
}

.time-inputs {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.time-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0 !important;
}

.time-group input[type="time"] {
    padding: 8px 12px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    font-size: 1rem;
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    transition: border-color 0.2s ease;
    min-width: 120px;
}

.time-group input[type="time"]:focus {
    outline: none;
    border-color: #498f95 !important;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.2) !important;
}

.closed-message {
    color: #a0aec0 !important;
    font-style: italic;
    font-weight: 500;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.closed-message::before {
    content: "🚫";
    margin-right: 8px;
}

/* Day schedule states */
.day-schedule.closed {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}

.day-schedule.closed .day-name {
    color: #a0aec0 !important;
}

.day-schedule.open {
    background: #1a202c !important;
    border-color: #498f95 !important;
}

.day-schedule.open .day-name {
    color: #e2e8f0 !important;
}


@media (max-width: 768px) {
    .time-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .time-group input[type="time"] {
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .form-section h2 {
        font-size: 1.2rem;
    }
    
    .survey-form {
        padding: 20px 15px;
    }
    
    .day-schedule {
        padding: 12px;
    }
    
}

/* Design Preferences Styles */
.design-preferences-container {
    background: #2d3748;   /* как у карточек */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #4a5568;
    margin-top: 20px;
}

.design-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #1a202c;
    border-radius: 12px;
    border: 1px solid #4a5568;
}

.design-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2e8f0 !important;
    margin-bottom: 16px;
}

/* Font Selector */
.font-selector {
    display: grid;
    gap: 12px;
}

.font-option {
    position: relative;
}

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

.font-preview {
    display: block;
    padding: 16px 20px;
    background: #2d3748;
    border: 2px solid #4a5568;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #e2e8f0;
}

.font-preview:hover {
    border-color: #498f95;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.2);
}

.font-option input[type="radio"]:checked + .font-preview {
    border-color: #498f95 !important;
    background: #498f95 !important;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.3) !important;
    color: #ffffff !important;
}

.font-option input[type="radio"]:checked + .font-preview.custom-option {
    border: 2px solid #498f95 !important;
    background: #498f95 !important;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.4) !important;
}

.font-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.font-sample {
    display: block;
    font-size: 1rem;
    color: #a0aec0;
    margin-bottom: 4px;
}

.font-category {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
}

/* Selected font text colors */
.font-option input[type="radio"]:checked + .font-preview .font-name,
.font-option input[type="radio"]:checked + .font-preview .font-sample,
.font-option input[type="radio"]:checked + .font-preview .font-category {
    color: #ffffff !important;
}

/* Color Palette Selector */
.color-palette-selector {
    display: grid;
    gap: 12px;
}

.palette-option {
    position: relative;
}

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

.palette-preview {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 16px;
}

.palette-preview:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.palette-option input[type="radio"]:checked + .palette-preview {
    border-color: #4facfe;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.15);
}

.palette-colors {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.palette-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.palette-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.palette-description {
    font-size: 0.9rem;
    color: #718096;
}

/* Design Preview */
.design-preview {
    background: #1a202c !important;
    border-radius: 12px !important;
    padding: 24px !important;
    border: 2px solid #4a5568 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.preview-header {
    margin-bottom: 16px;
    padding: 16px !important;
    border-radius: 8px !important;
    background: #498f95 !important;
}

.preview-title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.preview-subtitle {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease !important;
}

.preview-content {
    margin-top: 16px;
}

.preview-text {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #e2e8f0 !important;
    margin-bottom: 16px !important;
    transition: all 0.3s ease !important;
}

.preview-button {
    background: #498f95 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.preview-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.4) !important;
    background: #5aa4aa !important;
}

.preview-button:disabled {
    background: #4a5568 !important;
    color: #a0aec0 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.preview-button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #4a5568 !important;
}

/* Color Palette Themes - Updated for Dark Theme */
.design-preview.blue-modern,
.design-preview.warm-sunset,
.design-preview.nature-green,
.design-preview.elegant-purple,
.design-preview.minimal-gray {
    background: #1a202c !important;
    border: 2px solid #4a5568 !important;
}

.design-preview.blue-modern .preview-button,
.design-preview.warm-sunset .preview-button,
.design-preview.nature-green .preview-button,
.design-preview.elegant-purple .preview-button,
.design-preview.minimal-gray .preview-button {
    background: #498f95 !important;
}

.design-preview.blue-modern .preview-button:hover,
.design-preview.warm-sunset .preview-button:hover,
.design-preview.nature-green .preview-button:hover,
.design-preview.elegant-purple .preview-button:hover,
.design-preview.minimal-gray .preview-button:hover {
    background: #5aa4aa !important;
}

@media (max-width: 768px) {
    .palette-preview {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .font-preview {
        padding: 12px 16px;
    }
    
    .design-section {
        padding: 16px;
    }
    
    .preview-title {
        font-size: 1.5rem;
    }
}

/* Custom Input Styles */
.custom-option {
    background: #2d3748 !important;
    border: 2px dashed #498f95 !important;
    position: relative;
}

.custom-option:hover {
    background: #498f95 !important;
    border-color: #5aa4aa !important;
}

.custom-option .font-name,
.custom-option .font-sample,
.custom-option .font-category {
    color: #e2e8f0 !important;
}

.custom-option:hover .font-name,
.custom-option:hover .font-sample,
.custom-option:hover .font-category {
    color: #ffffff !important;
}

.custom-font-input, .custom-color-input {
    margin-top: 16px;
    padding: 20px;
    background: #1a202c;
    border: 2px solid #4a5568;
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

.custom-font-input .custom-input-group label {
    color: #e2e8f0 !important;
}

.custom-font-input .custom-input-group input[type="text"] {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    border: 2px solid #4a5568 !important;
}

.custom-font-input .custom-input-group input[type="text"]:focus {
    border-color: #498f95 !important;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.2) !important;
}

.custom-font-input .custom-input-group small {
    color: #a0aec0 !important;
}

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

.custom-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-input-group label {
    font-weight: 500;
    color: #e2e8f0 !important;
}

.custom-input-group input[type="text"] {
    padding: 12px 16px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: #1a202c;
    color: #e2e8f0;
}

.custom-input-group input[type="text"]:focus {
    outline: none;
    border-color: #498f95;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.2);
}

.custom-input-group small {
    color: #a0aec0 !important;
    font-size: 0.85rem;
}

/* Custom Photoshoot Input Styles */
.custom-photoshoot-input {
    margin-top: 20px !important;
    padding: 20px !important;
    background: #2d3748 !important;
    border: 2px solid #498f95 !important;
    border-radius: 12px !important;
    animation: slideDown 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 200px !important;
}


.custom-photoshoot-input .custom-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-photoshoot-input label {
    font-weight: 600;
    color: #e2e8f0 !important;
    font-size: 1rem;
}

.custom-photoshoot-input textarea {
    padding: 16px;
    border: 2px solid #4a5568;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
    background: #1a202c !important;
    color: #e2e8f0 !important;
}

.custom-photoshoot-input textarea:focus {
    outline: none;
    border-color: #498f95 !important;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.2) !important;
}

.custom-photoshoot-input textarea::placeholder {
    color: #a0aec0 !important;
    line-height: 1.5;
}

.custom-photoshoot-input small {
    color: #498f95 !important;
    font-style: italic;
    font-weight: 500;
}


/* Make sure checkmark doesn't block clicks but still shows visual feedback */
.checkmark {
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure all checkboxes work properly */
.checkbox-item input[type="checkbox"] {
    pointer-events: auto;
}

/* Special styling for Sonstiges checkbox to ensure it shows checked state */
#sonstiges_checkbox:checked + .checkmark {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    border-color: #4facfe !important;
}

#sonstiges_checkbox:checked + .checkmark::after {
    content: "✓" !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    line-height: 1 !important;
}

/* Color Picker Styles */
.custom-color-input h4 {
    margin-bottom: 16px;
    color: #374151;
    font-size: 1.1rem;
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.color-picker-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-picker-item label {
    font-weight: 500;
    color: #e2e8f0 !important;
    font-size: 0.9rem;
}

.color-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-input-wrapper input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 6px;
}

.color-input-wrapper input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: monospace;
    background: #2d3748 !important;
    color: #e2e8f0 !important;
}

.color-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #498f95 !important;
    box-shadow: 0 0 0 3px rgba(73, 143, 149, 0.2) !important;
}

.custom-color-preview {
    transition: all 0.3s ease;
    border: 3px solid white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Custom palette theme */
.design-preview.custom {
    background: #1a202c !important;
    border: 2px solid #4a5568 !important;
    transition: all 0.3s ease;
}

.design-preview.custom .preview-button {
    background: #498f95 !important;
}

.design-preview.custom .preview-button:hover {
    background: #5aa4aa !important;
}

@media (max-width: 768px) {
    .color-picker-grid {
        grid-template-columns: 1fr;
    }
    
    .color-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .color-input-wrapper input[type="color"] {
        width: 100%;
        height: 50px;
    }
}

/* Palette Generator Styles */
.palette-generator-section {
    background: #2d3748;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 2px solid #4a5568;
}

.palette-generator-section h4 {
    color: #e2e8f0 !important;
    margin-bottom: 8px;
}

.generator-description {
    color: #a0aec0 !important;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.generator-controls {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.base-color-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.base-color-picker label {
    font-weight: 600;
    color: #e2e8f0 !important;
}

.color-scheme-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-scheme-selector > label {
    font-weight: 600;
    color: #e2e8f0 !important;
}

.scheme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.scheme-option {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: #2d3748;
    border: 2px solid #4a5568;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scheme-option:hover {
    border-color: #498f95;
    background: #498f95;
}

.scheme-option input[type="radio"] {
    margin-bottom: 6px;
    accent-color: #498f95;
}

.scheme-option input[type="radio"]:checked + .scheme-name {
    color: #ffffff !important;
    font-weight: 600;
}

.scheme-option input[type="radio"]:checked ~ .scheme-desc {
    color: #ffffff !important;
}

.scheme-name {
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.scheme-desc {
    font-size: 0.85rem;
    color: #a0aec0;
    line-height: 1.3;
}

.generate-palette-btn {
    background: #498f95;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.3);
    width: 100%;
    margin-top: 16px;
}

.generate-palette-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(73, 143, 149, 0.4);
    background: #5aa4aa;
}

.generate-palette-btn:active {
    transform: translateY(0);
}

/* Generated Palette Preview */
.generated-palette-preview {
    background: #1a202c;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #4a5568;
}

.generated-palette-preview h5 {
    color: #e2e8f0 !important;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.palette-colors-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: translateY(-2px);
}

.swatch-color {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.color-swatch:hover .swatch-color {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.swatch-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0 !important;
}

.swatch-hex {
    font-size: 0.8rem;
    font-family: monospace;
    color: #a0aec0 !important;
    background: #2d3748 !important;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Manual Color Section */
.manual-color-section {
    background: #2d3748;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #4a5568;
}

.manual-color-section h4 {
    color: #e2e8f0 !important;
    margin-bottom: 16px;
}

/* Copy to Manual Button */
.copy-to-manual-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.copy-to-manual-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Animation for palette generation */
@keyframes paletteGenerate {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.palette-generated {
    animation: paletteGenerate 0.5s ease;
}

@media (max-width: 768px) {
    .scheme-options {
        grid-template-columns: 1fr;
    }
    
    .palette-colors-large {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .generator-controls {
        gap: 16px;
    }
    
    .palette-generator-section {
        padding: 16px;
    }
}

/* Enhanced Notes Section Styles */
.enhanced-notes-section {
    background: #2d3748 !important;
    border: 2px solid #4a5568 !important;
    padding: 24px;
    border-radius: 16px;
}

.notes-header {
    margin-bottom: 20px;
}

.notes-header h3 {
    color: #e2e8f0 !important;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.notes-subtitle {
    color: #a0aec0 !important;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.enhanced-textarea-container {
    background: #1a202c !important;
    border-radius: 12px;
    border: 2px solid #4a5568 !important;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Toolbar Styles */
.textarea-toolbar {
    background: #2d3748 !important;
    padding: 12px 16px;
    border-bottom: 1px solid #4a5568 !important;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.toolbar-btn {
    background: #4a5568;
    color: #e2e8f0;
    border: 1px solid #718096;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-btn:hover {
    background: #498f95;
    border-color: #498f95;
    transform: translateY(-1px);
}

.toolbar-btn:active {
    transform: translateY(0);
}

.toolbar-btn.preview-btn {
    background: #498f95 !important;
    color: white !important;
    border-color: #498f95 !important;
}

.toolbar-btn.preview-btn:hover {
    background: #5aa4aa !important;
}

.toolbar-btn.print-btn {
    background: #498f95 !important;
    color: white !important;
    border-color: #498f95 !important;
}

.toolbar-btn.print-btn:hover {
    background: #5aa4aa !important;
}

/* Textarea Wrapper */
.textarea-wrapper {
    position: relative;
}

#enhanced_notes_textarea {
    width: 100%;
    border: none;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 200px;
    font-family: 'Inter', sans-serif;
    color: #e2e8f0 !important;
    background: #1a202c !important;
    transition: all 0.2s ease;
}

#enhanced_notes_textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #498f95 !important;
}

#enhanced_notes_textarea::placeholder {
    color: #a0aec0 !important;
}


.textarea-footer {
    background: #2d3748 !important;
    padding: 8px 20px;
    border-top: 1px solid #4a5568 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.character-count {
    color: #a0aec0 !important;
    font-weight: 500;
}

.writing-tips {
    color: #498f95 !important;
    font-style: italic;
}

/* Preview Panel */
.notes-preview-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preview-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.preview-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.preview-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.close-preview {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-preview:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Document Preview */
.preview-document {
    padding: 40px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
}

.document-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.document-header h2 {
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.document-subtitle {
    color: #718096;
    font-size: 1rem;
    margin: 0;
}

.document-body {
    margin-bottom: 30px;
    min-height: 200px;
}

.document-body h3 {
    color: #2d3748;
    margin-top: 24px;
    margin-bottom: 12px;
}

.document-body ul {
    margin: 12px 0;
    padding-left: 20px;
}

.document-body li {
    margin-bottom: 6px;
}

.document-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

/* Suggestion Prompts */
.suggestion-prompts {
    margin-top: 24px;
    background: #2d3748 !important;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #4a5568 !important;
}

.suggestion-prompts h4 {
    color: #e2e8f0 !important;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.prompt-card {
    background: #1a202c !important;
    border: 2px solid #4a5568 !important;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.prompt-card:hover {
    background: #498f95 !important;
    border-color: #498f95 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 143, 149, 0.3) !important;
}

.prompt-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.prompt-text {
    font-weight: 500;
    color: #e2e8f0 !important;
    font-size: 0.9rem;
}

.prompt-card:hover .prompt-text {
    color: #ffffff !important;
}

/* Центрирование финальных блоков */
.form-section.privacy,
.form-section.submit {
    display: flex;
    justify-content: center;
    background: #1a202c !important;   /* такой же фон как у других секций */
    border: 1px solid #4a5568 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 0 auto 40px auto !important;
    max-width: 720px !important;
}

.form-section.privacy .privacy-checkbox,
.form-section.submit .submit-btn {
    max-width: 400px;
    width: 100%;
}

/* Print Styles */
@media print {
    .preview-document {
        padding: 20px;
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .document-header h2 {
        font-size: 18pt;
        margin-bottom: 10pt;
    }
    
    .document-subtitle {
        font-size: 11pt;
    }
    
    .document-body {
        font-size: 11pt;
    }
    
    .document-footer {
        font-size: 10pt;
    }
}


/* Export Preview Modal */
.export-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.export-preview-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.export-preview-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.export-preview-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.export-preview-header p {
    margin: 4px 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.close-export-preview {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.close-export-preview:hover {
    background: rgba(255, 255, 255, 0.3);
}

.export-preview-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    font-family: 'Courier New', monospace;
}

.export-preview-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #2d3748;
}

.export-preview-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}


.export-preview-footer .close-btn {
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.export-preview-footer .close-btn:hover {
    background: #4b5563;
}

@media (max-width: 768px) {
    .textarea-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .toolbar-group {
        justify-content: center;
    }
    
    .prompt-grid {
        grid-template-columns: 1fr;
    }
    
    .notes-preview-panel {
        padding: 10px;
    }
    
    .preview-document {
        padding: 20px;
    }
    
    .enhanced-notes-section {
        padding: 16px;
    }
    
    .export-preview-modal {
        padding: 10px;
    }
    
    .export-preview-content {
        max-height: 95vh;
    }
    
    .export-preview-body {
        padding: 16px;
    }
    
    .export-preview-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .export-preview-footer .close-btn {
        width: 100%;
    }
}

/* Progress Modal Styles */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.progress-modal-content {
    background: #1a202c;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid #498f95;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

.progress-modal-header {
    background: linear-gradient(135deg, #498f95 0%, #5aa4aa 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.progress-modal-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.progress-warning {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.progress-modal-body {
    padding: 32px 24px;
    background: #1a202c;
}

.progress-container {
    margin-bottom: 24px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background: #2d3748;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #498f95 0%, #5aa4aa 100%);
    border-radius: 6px;
    transition: width 0.5s ease, background 0.3s ease;
    position: relative;
    width: 0%;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s infinite;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.progress-status {
    text-align: center;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
    min-height: 24px;
    transition: all 0.3s ease;
}

.progress-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}

.progress-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2d3748;
    border-top: 3px solid #498f95;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Mobile responsiveness for progress modal */
@media (max-width: 768px) {
    .progress-modal {
        padding: 10px;
    }
    
    .progress-modal-content {
        max-width: 100%;
        margin: 0;
    }
    
    .progress-modal-header {
        padding: 20px 16px;
    }
    
    .progress-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .progress-warning {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .progress-modal-body {
        padding: 24px 16px;
    }
    
    .progress-bar {
        height: 10px;
    }
    
    .progress-text {
        font-size: 0.75rem;
    }
    
    .progress-spinner {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }
}

/* Скрыть элементы блока Zusätzliche Wünsche */
.suggestion-prompts,
.prompt-grid,
.prompt-card {
    display: none !important;
}
