/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --accent: #d4af37;
    --bg-primary: #f8fffe;
    --bg-secondary: #f0fdf4;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
}

/* Global Styles */
* {
    box-sizing: border-box;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    min-height: 100vh;
    color: var(--text-primary);
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* App Header */
.app-header {
    text-align: center;
    padding: 1rem 0 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

.app-logo-img {
    height: 100px;
    margin-bottom: 1rem;
}

.app-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1rem;
}

.app-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    /* letter-spacing removed to protect arabic font */
}

/* Main Layout */
.main-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.column {
    flex: 1;
}

.questions-col {
    flex: 1.2;
}

/* Cards */
.main-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 2rem;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Question Styling */
.question-container {
    padding: 1.25rem;
    background: var(--bg-primary);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.question-container:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.08);
}

.question-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Select Styling */
.select-wrapper {
    position: relative;
}

select {
    width: 100%;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 0.5rem 0.75rem;
    min-height: 48px;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    /* Remove default arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1em;
}

select:hover,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Result Cards */
.result-card {
    padding: 2rem;
    border-radius: 20px;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease;
}

.result-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 148, 136, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.result-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(234, 88, 12, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.result-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.result-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-icon {
    font-size: 1.5rem;
}

.result-content {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
}

.result-steps {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.step-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(13, 148, 136, 0.1);
    color: #94a3b8;
    font-size: 0.85rem;
}

.partners-logos-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-partner-img {
    height: 80px;
    opacity: 0.9;
    transition: all 0.3s;
}

.footer-partner-img:hover {
    opacity: 1;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .app-container {
        padding: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}