@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f5f5;
    color: #222;
}


.page-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background: #fdfdfd;
    min-height: 100vh;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #07482E;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.logo-text {
    font-weight: 600;
    font-size: 14px;
}

.menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #f2f2f2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 6px;
}
.menu-btn span {
    height: 2px;
    width: 100%;
    background: #444;
}

/* Hero */

.hero {
    position: relative;
    padding: 24px 16px 32px;
    background-image: url('../images/hero-placeholder.jpg'); /* عدّل لو عندك صورة */
    background-size: cover;
    background-position: center;
    min-height: 380px;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    font-size: 12px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 20px;
    margin: 0 0 8px;
    line-height: 1.5;
}

.hero-text {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-card {
    background: rgba(0,0,0,0.28);
    border-radius: 14px;
    padding: 10px 12px;
    backdrop-filter: blur(8px);
}

.hero-card h3 {
    margin: 0 0 4px;
    font-size: 14px;
}

.hero-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.hero-card-icon {
    font-size: 16px;
    margin-bottom: 4px;
}

.hero-cta {
    border: none;
    width: 100%;
    border-radius: 999px;
    padding: 10px 12px;
    background: #0c6b4a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Sections */

.section {
    padding: 20px 16px;
    background: #fdfdfd;
}

.section + .section {
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 16px;
    margin: 0 0 8px;
    color: #0c6b4a;
}

.section-text {
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

.secondary-btn {
    margin-top: 12px;
    border-radius: 999px;
    border: 1px solid #0c6b4a;
    background: #fff;
    color: #0c6b4a;
    padding: 8px 14px;
    font-size: 13px;
}

/* Form */

.form-section {
    padding: 20px 16px 30px;
    background: #f8fbf9;
}

.form-note-top {
    background: #ffe8c4;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 12px;
    text-align: center;
}

.form-title {
    font-size: 16px;
    text-align: center;
    margin-bottom: 16px;
}

.form-subtitle {
    font-size: 14px;
    margin: 8px 0 10px;
}

.form-label {
    display: block;
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 4px;
}

.form-input, textarea.form-input, select.form-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    outline: none;
}

.form-input:focus {
    border-color: #0c6b4a;
}

.radio-group {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.hint {
    font-size: 11px;
    color: #666;
    margin-top: 0;
    margin-bottom: 6px;
}

.recaptcha-placeholder {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #eee;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
}

.checkbox-row {
    margin: 10px 0;
    font-size: 12px;
}

.submit-btn {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 10px;
    background: #0c6b4a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.error-message {
    font-size: 12px;
    color: #c0392b;
    margin-top: 8px;
}

/* Modals */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 90;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.modal-content {
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 16px 18px;
    font-size: 13px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    position: relative;
}

.modal-title {
    margin: 0 0 8px;
    font-size: 15px;
    color: #0c6b4a;
}

.modal-list {
    padding-left: 18px;
    margin: 8px 0 10px;
}

.modal-list li {
    margin-bottom: 4px;
}

.modal-close {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: #ff4b4b;
    color: #fff;
    cursor: pointer;
}

.primary-btn {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 8px 0;
    background: #0c6b4a;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
}

.primary-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Loading modal */

.loader {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #eee;
    border-top-color: #0c6b4a;
    margin: 8px auto;
    animation: spin 1s linear infinite;
}

.progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #eee;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    width: 0;
    background: #0c6b4a;
    animation: progressAnim 2.5s infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes progressAnim {
    0% { width: 0; }
    50% { width: 80%; }
    100% { width: 100%; }
}

/* Success page */

.success-section {
    text-align: center;
}

.success-section .highlight {
    margin-top: 12px;
    font-weight: 500;
}

.success-section .warn {
    margin-top: 8px;
    color: #c0392b;
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.small-note {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* Admin */

.admin-body {
    background: #f2f4f7;
}

.admin-login-box {
    max-width: 360px;
    margin: 60px auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.admin-header {
    max-width: 900px;
    margin: 12px auto;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-link {
    margin-left: 12px;
    font-size: 13px;
}

.admin-content {
    max-width: 900px;
    margin: 0 auto 32px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}

.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
}

.admin-table th {
    background: #f3f3f3;
}

.settings-form {
    max-width: 480px;
}

.info-message {
    font-size: 13px;
    color: #0c6b4a;
    margin-bottom: 8px;
}


.main-nav {
    display: none;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.main-nav.open {
    display: block;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 12px;
}

.main-nav li {
    margin-bottom: 4px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

.family-note {
    font-size: 12px;
    margin: 8px 0;
}

.link-btn {
    border: none;
    background: none;
    color: #0c6b4a;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
    padding: 0 3px;
}

.family-summary {
    margin-top: 6px;
    padding: 8px 10px;
    background: #eef9f4;
    border-radius: 8px;
    font-size: 12px;
}

.family-summary ul {
    margin: 4px 0 0;
    padding-left: 18px;
}


