@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Assistant', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    direction: rtl;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landing Page */
#landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 20px;
}

.hero-content {
    text-align: center;
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.8s ease-out;
    max-width: 800px;
    width: 100%;
}

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

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

.logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.hero-title {
    font-size: 2.2rem;
    color: #1a365d;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #4a5568;
    margin-bottom: 35px;
    line-height: 1.8;
    font-weight: 400;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 40px;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

.highlight-text {
    font-size: 1.1rem;
    line-height: 1.9;
    font-weight: 500;
}

.highlight-text strong {
    font-weight: 700;
    font-size: 1.15rem;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Assistant', sans-serif;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    }
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Questions Page */
#questions-page {
    min-height: 100vh;
    padding: 40px 0;
    background: #f8f9fa;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 20%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.question-container {
    background: white;
    padding: 50px 45px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    min-height: 450px;
    margin-bottom: 30px;
}

.question-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.question-step.active {
    display: block;
}

.question-title {
    font-size: 1.4rem;
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.question-text {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.8;
    font-weight: 500;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.option-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 20px;
    font-size: 1.15rem;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Assistant', sans-serif;
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-btn:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.option-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #764ba2;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* City Input */
.city-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.city-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.15rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    text-align: right;
    font-family: 'Assistant', sans-serif;
    transition: all 0.3s ease;
    background: white;
    color: #2d3748;
}

.city-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fafafa;
}

.city-input::placeholder {
    color: #a0aec0;
}

.city-continue-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.15rem;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Assistant', sans-serif;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.city-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

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

.city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-top: none;
    border-radius: 0 0 16px 16px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.city-suggestions.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.city-suggestion-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
    text-align: right;
    font-family: 'Assistant', sans-serif;
    color: #2d3748;
    font-size: 1rem;
}

.city-suggestion-item:hover {
    background: #f7fafc;
    color: #667eea;
}

.city-suggestion-item:last-child {
    border-bottom: none;
}

/* Navigation */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    padding: 14px 35px;
    font-size: 1.05rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Assistant', sans-serif;
    transition: all 0.3s ease;
}

.prev-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.prev-btn:hover {
    background: #cbd5e0;
    transform: translateX(-3px);
}

/* Result Page */
#result-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 20px;
}

.result-content {
    text-align: center;
    background: white;
    padding: 60px 45px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 650px;
    width: 100%;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.result-icon.success::before {
    content: "✅";
}

.result-icon.error::before {
    content: "❌";
}

.result-title {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 25px;
    font-weight: 700;
}

.result-message {
    font-size: 1.15rem;
    color: #4a5568;
    margin-bottom: 35px;
    line-height: 1.9;
    font-weight: 400;
}

.whatsapp-link {
    margin-bottom: 30px;
}

.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Assistant', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    background: #20ba5a;
}

.whatsapp-btn span {
    margin-left: 10px;
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .hero-content {
        padding: 40px 25px;
    }

    .logo {
        max-width: 150px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .highlight-text {
        font-size: 1rem;
    }

    .cta-button {
        padding: 16px 40px;
        font-size: 1.1rem;
    }

    .question-container {
        padding: 35px 25px;
        min-height: 400px;
    }

    .question-title {
        font-size: 1.2rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .option-btn {
        padding: 18px;
        font-size: 1.05rem;
    }

    .city-input {
        padding: 16px 18px;
        font-size: 1.05rem;
    }

    .city-continue-btn {
        padding: 14px;
        font-size: 1.05rem;
    }

    .result-content {
        padding: 45px 30px;
    }

    .result-title {
        font-size: 1.6rem;
    }

    .result-message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .logo {
        max-width: 120px;
    }

    .question-text {
        font-size: 1rem;
    }

    .options-grid {
        gap: 12px;
    }

    .option-btn {
        padding: 15px;
        font-size: 1rem;
        min-height: 60px;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .question-container {
        padding: 30px 20px;
    }
}
