/* Global Styles */
:root {
    --primary-color: #0d9488;
    /* Teal/Emerald */
    --secondary-color: #0f766e;
    /* Darker Teal for hover */
    --accent-color: #f59e0b;
    /* Gold/Amber */
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 1rem;
    --font-main: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d97706;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-donate {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 900;
    line-height: 1;
}

.logo .sub-logo {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-dark);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 600px;
    background: url('hero-background.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(13, 148, 136, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInDown 1s ease-out;
}

.hero-registration {
    font-size: 0.9rem;
    opacity: 0.9;
    background-color: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}

.hero-slogan {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* About Section */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.vision-box {
    background-color: #f0fdfa;
    border-right: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.vision-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid transparent;
}

.program-card:hover {
    border-top-color: var(--primary-color);
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: #f0fdfa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.program-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.program-card ul li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.program-card ul li i {
    color: var(--accent-color);
    margin-top: 4px;
    font-size: 0.9rem;
}

/* Why Donate Section */
.why-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.why-content h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    background: #f0fdfa;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.why-decoration {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-bg {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    position: absolute;
    opacity: 0.1;
    animation: pulse 3s infinite;
}

.big-icon {
    font-size: 8rem;
    color: var(--accent-color);
    z-index: 1;
    filter: drop-shadow(0 10px 15px rgba(245, 158, 11, 0.3));
}

/* Legal Section */
.legal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.legal-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legal-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.legal-card p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

/* Footer */
.main-footer {
    background-color: #111827;
    color: var(--white);
    padding-top: 4rem;
}

.cta-section {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary-color);
}

.social-links {
    text-align: center;
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook {
    background-color: #1877f2;
}

.social-icon.facebook:hover {
    background-color: #0d5dbf;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        display: block !important;
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0;
        border: none;
    }

    .main-nav ul {
        flex-direction: row;
        /* Horizontal layout */
        flex-wrap: wrap;
        /* Allow wrapping */
        justify-content: center;
        gap: 0.5rem;
    }

    .main-nav li {
        margin-bottom: 0.5rem;
    }

    .main-nav a {
        display: inline-block;
        font-size: 0.85rem;
        background-color: #f3f4f6;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
    }

    .main-nav a.btn-donate {
        background-color: var(--accent-color);
        color: var(--white);
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
        background-position: center center;
    }

    .hero-slogan {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-decoration {
        display: none;
    }

    .container {
        width: 95%;
        padding: 0 0.5rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
}

.gallery-controls {
    text-align: center;
    margin: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.85), rgba(245, 158, 11, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
    transform: scale(0.5);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13, 148, 136, 0.8);
    color: var(--white);
    border: none;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    right: 20px;
}

.lightbox-next {
    left: 20px;
}

/* Lightbox Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.8rem;
        padding: 0.6rem 1rem;
    }

    .lightbox-prev {
        right: 10px;
    }

    .lightbox-next {
        left: 10px;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        bottom: 15px;
    }
}

/* Donate Section */
.donate-section {
    background: linear-gradient(135deg, #f0fdfa 0%, #fef3c7 100%);
}

.donate-content {
    max-width: 1000px;
    margin: 0 auto;
}

.donation-options h3,
.donation-amounts h3,
.donation-impact h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.donation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.donation-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.donation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-top-color: var(--accent-color);
}

.donation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.donation-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.donation-card h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.bank-details,
.wallet-options,
.direct-donation {
    text-align: right;
}

.bank-details p,
.wallet-options p,
.direct-donation p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.account-number,
.wallet-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f0fdfa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 2px solid var(--primary-color);
}

.account-number span,
.wallet-number span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    direction: ltr;
}

.account-name {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.copy-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.wallet-options ul {
    list-style: none;
    text-align: right;
}

.wallet-options ul li {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.wallet-options ul li i {
    color: var(--accent-color);
}

.direct-donation p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.direct-donation i {
    color: var(--primary-color);
}

/* Donation Amounts */
.donation-amounts {
    margin: 4rem 0;
    text-align: center;
}

.amount-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.amount-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.amount-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.amount-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.custom-amount-input {
    margin-top: 1.5rem;
}

.custom-amount-input input {
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    font-family: var(--font-main);
}

.custom-amount-input input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Donation Impact */
.donation-impact {
    margin-top: 4rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.impact-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.impact-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.impact-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.impact-item strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Responsive Donate Section */
@media (max-width: 768px) {
    .donation-cards {
        grid-template-columns: 1fr;
    }

    .amount-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .amount-btn {
        width: 100%;
    }

    .account-number span,
    .wallet-number span {
        font-size: 1.1rem;
    }
}

/* Contact Form Section */
.contact-form-section {
    background-color: var(--white);
    padding: 5rem 0;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #f0fdfa;
    /* Light teal background */
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1);
    border: 2px solid var(--primary-color);
}

.form-group {
    margin-bottom: 2rem;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    right: 1.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.7;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 1.2rem 3.5rem 1.2rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    border-radius: 12px;
    margin-top: 1rem;
    transition: all 0.4s ease;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.3);
}

.form-status {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
}

.form-status.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
}

/* Designer Credit Styling */
.designer-credit {
    font-size: 0.85rem;
    margin-top: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    opacity: 0.9;
}

.designer-credit span {
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

/* Floating Contact Buttons Styles */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: bounce 2s infinite;
}

.floating-btn.whatsapp {
    background-color: #25d366;
}

.floating-btn.phone {
    background-color: var(--primary-color);
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    color: white;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    :root {
        --radius: 0.75rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero-slogan {
        font-size: 1.7rem;
        padding: 0 10px;
    }

    .hero-desc {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        gap: 10px;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 1rem;
    }

    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .donation-cards {
        grid-template-columns: 1fr;
    }

    .account-number,
    .wallet-number {
        padding: 0.8rem;
    }

    .account-number span,
    .wallet-number span {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .contact-form-container {
        padding: 1.5rem;
        margin: 0 10px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .main-footer h2 {
        font-size: 1.8rem;
    }

    .footer-bottom {
        padding: 20px 10px;
        flex-direction: column;
        gap: 10px;
    }

    .designer-credit {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    /* Form Mobile Optimizations */
    .form-card {
        padding: 1rem;
        /* Reduce padding to save space */
    }

    .questions-grid,
    .possessions-grid {
        grid-template-columns: 1fr;
        /* Force single column for better readability */
    }

    .q-options.inline-options {
        flex-direction: column;
        /* Stack radio buttons vertically */
        gap: 0.8rem;
    }

    .inline-input-group {
        flex-wrap: wrap;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevent IOS zoom */
    }

    /* Improve table scrolling hint */
    .table-responsive {
        position: relative;
    }

    .table-responsive::after {
        content: '← اسحب لرؤية المزيد';
        display: block;
        text-align: left;
        font-size: 0.8rem;
        color: var(--primary-color);
        margin-top: 0.5rem;
        opacity: 0.7;
    }
}

/* Form Page Styles */
.form-section {
    padding-top: 2rem;
}

.social-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-top: 4px solid var(--primary-color);
}

.form-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100% !important;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Question Boxes Grid */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.question-box {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.question-box.full-width {
    grid-column: 1 / -1;
}

.q-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.q-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.q-options.inline-options {
    flex-direction: row;
    gap: 1.5rem;
}

.q-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.q-options input[type="radio"] {
    accent-color: var(--primary-color);
    width: 1.1em;
    height: 1.1em;
}

/* Possessions Grid */
.possessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    padding: 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.checkbox-item:hover {
    background: #f0fdfa;
    border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 1.2em;
    height: 1.2em;
}

.divider {
    grid-column: 1 / -1;
    height: 1px;
    background: #e5e7eb;
    margin: 1rem 0;
}

/* Family Table */
.table-responsive {
    overflow-x: auto;
}

.family-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.family-table th,
.family-table td {
    padding: 0.8rem;
    border: 1px solid #e5e7eb;
    text-align: right;
}

.family-table th {
    background: #f3f4f6;
    font-weight: 700;
    color: var(--text-dark);
}

.family-table input,
.family-table select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.btn-delete {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.btn-delete:hover {
    background: #fecaca;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.ml-1 {
    margin-right: 1rem;
}

/* RTL margin-right acts as margin-left visually */

.hidden-field {
    display: none;
    background: #f0fdfa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.alert-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.alert-box h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-box ul {
    list-style: disc;
    padding-right: 1.5rem;
}

.alert-box li {
    margin-bottom: 0.5rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

.inline-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inline-input-group input {
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Color overrides for Social Form to differentiate it */
.social-form {
    --primary-color: #0c4a6e;
    /* Sky 900 (Deep Navy) */
    --accent-color: #0284c7;
    /* Sky 600 (Bright Blue) */
    --secondary-color: #075985;
}

.social-form .form-card {
    border-top-color: var(--primary-color);
}

.social-form .checkbox-item:hover,
.social-form .question-box:hover {
    background-color: #f0f9ff;
    /* Light blue background instead of teal */
    border-color: var(--accent-color);
}

.social-form .form-group input:focus,
.social-form .form-group select:focus,
.social-form .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.social-form .hidden-field {
    background-color: #f0fdff;
}

.social-form .family-table th {
    background-color: #e0f2fe;
    /* Light blue header */
    color: var(--primary-color);
}

/* Floating Add Button for Family Members - REVERTED to be sticky inside container */
.sticky-add-btn {
    width: 100% !important;
    border-style: dashed !important;
    position: sticky !important;
    bottom: 0px;
    background-color: var(--white) !important;
    z-index: 90;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05) !important;
    margin-top: 1rem;
    left: auto !important;
    right: auto !important;
    border-radius: 5px !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-width: 2px !important;
}

.sticky-add-btn:hover {
    background-color: #f0fdfa !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .sticky-add-btn {
        bottom: 0px;
    }
}