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

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

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --accent: #f9ab00;
    --green: #1e8e3e;
    --green-light: #e6f4ea;
    --red: #d93025;
    --red-light: #fce8e6;
    --text: #202124;
    --text-light: #5f6368;
    --bg: #f8f9fa;
    --white: #fff;
    --border: #dadce0;
    --shadow: 0 1px 3px rgba(60,64,67,0.12), 0 1px 2px rgba(60,64,67,0.08);
    --shadow-lg: 0 4px 16px rgba(60,64,67,0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Rubik', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
}

.hidden { display: none !important; }
.screen { display: none; }
.screen.active { display: block; }

.logo { height: 50px; }
.logo-small { height: 32px; }

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); }
.btn-large { padding: 14px 40px; font-size: 16px; }
.btn-small { padding: 6px 14px; font-size: 12px; }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #c5221f; }

.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 6px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

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

.form-section {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.form-section h3 {
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 18px;
}

.spinner {
    width: 40px; height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Print styles */
@media print {
    body { background: white; }
    .no-print, header, .rep-login-area, .btn-rep-login, .rep-badge,
    .controls-locked-notice, #rep-login-overlay,
    .site-footer .footer-links, .footer-note { display: none !important; }
    .section, .summary-card, .form-section, .info-card, .rep-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
    .hero { padding: 30px 20px 20px; }
    .summary-cards { margin-top: 0; }
    .container { padding: 10px 20px; }
}
