/* ===== WanderWise - Minimalist Modern Design ===== */
:root {
    --background: #FDFDFF;
    --text-primary: #1D2B3F;
    --text-secondary: #5A6472;
    --accent: #4A43EC;
    --accent-dark: #352FBF;
    --border: #EAEBEE;
    --card-bg: #FFFFFF;
    --shadow: 0px 8px 24px rgba(29, 43, 63, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* ===== ЗАГОЛОВКИ ===== */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ОБЩАЯ КАРТОЧКА ===== */
.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===== ФОРМА ПОИСКА ===== */
.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 18px 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text-primary);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 67, 236, 0.1);
}

.input-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ===== КНОПКИ ===== */
.btn {
    padding: 18px 30px;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 67, 236, 0.2);
}

.btn-secondary {
    background: var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: #dde0e3;
    color: var(--text-primary);
}

.btn-premium {
    background: var(--accent);
    color: white;
    font-size: 1.1rem;
    padding: 20px 35px;
}

.btn-premium:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 67, 236, 0.2);
}

.btn-icon {
    font-size: 1.2em;
}

.free-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 15px;
}

.suggestion-area {
    margin-top: 25px;
    text-align: center;
}

.suggestion-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.suggestion-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    background-color: #F7F7FF;
    border: 1px solid var(--border);
}


/* ===== СООБЩЕНИЯ ОБ ОШИБКАХ ===== */
.error-message-box {
    text-align: center;
    border-left: 4px solid #e74c3c;
}

.error-message-box h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.error-message-box p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* ===== РЕЗУЛЬТАТЫ ===== */
.recommendations h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.recommendations h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.recommendation-section {
    margin: 30px 0;
}

.recommendation-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.recommendation-section ul {
    list-style: none;
    padding-left: 0;
}

.recommendation-section li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
}

.recommendation-section li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2em;
    opacity: 0.6;
}

.recommendation-section li strong {
    display: block;
    margin-bottom: 4px;
}

.recommendation-section li:last-child {
    border-bottom: none;
}

.action-btn {
    margin-top: 15px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
}

.recommendation-description {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 1rem;
    padding-left: 5px; /* Небольшой отступ для выравнивания с текстом выше */
}

/* ===== ОТМЕТКА ОБ ИИ ===== */
.ai-note {
    margin-top: 30px;
    padding: 15px;
    background-color: #F7F7FF;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.ai-note p {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== ФОРМА НОВОГО ПОИСКА ===== */
.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.new-search-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.new-search-form input {
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    width: 250px;
}

/* ===== БЛОК ОПЛАТЫ ===== */
.payment-message h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
}

.payment-message > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
    text-align: center;
}

/* ===== КАРТОЧКА ТАРИФА ===== */
.pricing-card {
    background: linear-gradient(135deg, #F7F7FF, #FFFFFF);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 30px;
    margin: 30px auto;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(74, 67, 236, 0.1);
}

.pricing-card h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.price {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

.amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.features {
    list-style: none;
    text-align: left;
    margin: 25px 0;
}

.features li {
    padding: 10px 0;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features li::before {
    content: "✔";
    color: var(--accent);
}

.back-option {
    margin-top: 25px;
    text-align: center;
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

/* ===== ФУТЕР ===== */
.footer {
    text-align: center;
    margin-top: auto;
    padding-top: 60px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .card {
        padding: 30px;
    }
    
    .input-group {
        flex-direction: column;
    }

    .action-buttons {
        border-top: none;
        padding-top: 0;
    }

    .new-search-form {
        flex-direction: column;
        width: 100%;
    }
    .new-search-form input, .new-search-form button {
        width: 100%;
    }
}

/* ===== СОСТОЯНИЯ ЗАГРУЗКИ ===== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.search-form {
    position: relative;
}

/* ===== ФОКУС ДЛЯ ДОСТУПНОСТИ ===== */
.btn:focus,
input:focus {
    outline: 2px solid rgba(74, 67, 236, 0.5);
    outline-offset: 2px;
} 