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

html {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: #1a3a3a;
    background-color: #f8f9f7;
    line-height: 1.6;
}

/* Color Palette from Logo */
:root {
    --primary-dark: #1b6b52;      /* الأخضر الداكن من الشعار */
    --primary-light: #2d8b6f;     /* الأخضر الفاتح من الشعار */
    --accent-gold: #b8a038;       /* الذهبي من الشعار */
    --accent-gold-light: #d4c562; /* الذهبي الفاتح */
    --text-dark: #1a3a3a;         /* النص الداكن */
    --text-light: #5a7a77;        /* النص الفاتح */
    --bg-light: #f5f7f6;          /* الخلفية الفاتحة */
    --bg-white: #ffffff;          /* الأبيض */
    --border-color: #d9e3e0;      /* لون الحدود */
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 0.625rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 95, 74, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f4a38 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 20px rgba(26, 95, 74, 0.3);
    transform: translateY(-2px);
}

.btn-white {
    background-color: white;
    color: var(--primary-dark);
    font-weight: 700;
    border: 2px solid var(--primary-dark);
}

.btn-white:hover {
    background-color: var(--bg-light);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(184, 160, 56, 0.2);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
    }
}

.btn-select {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-dark);
    background-color: transparent;
    color: var(--primary-dark);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 95, 74, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 95, 74, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0f4a38 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 20px rgba(26, 95, 74, 0.3);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(26, 95, 74, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 3px solid var(--accent-gold);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 3rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(26, 95, 74, 0.15));
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 4px 12px rgba(184, 160, 56, 0.3));
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(26, 95, 74, 0.2);
    display: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: none;
}

@media (min-width: 640px) {
    .logo-text {
        display: inline;
    }
}

.nav {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    background-color: rgba(27, 107, 82, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-dark));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header .btn-primary {
    display: none;
}

@media (min-width: 768px) {
    .header .btn-primary {
        display: inline-block;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 1rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 7rem 1rem;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 1rem;
    }
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero .container {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
}

.hero-text {
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-text {
        text-align: right;
    }
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.125rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-buttons .btn {
    flex: 1;
    min-width: 200px;
}

@media (min-width: 640px) {
    .hero-buttons .btn {
        flex: 0 1 auto;
        width: auto;
    }
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(26, 95, 74, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Doctors Section */
.doctors {
    background-color: var(--bg-white);
    padding: 5rem 1rem;
    position: relative;
}

.doctors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.25rem;
    }
}

.divider {
    width: 5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent-gold));
    margin: 1rem auto;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .section-header p {
        font-size: 1.125rem;
    }
}

.doctors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.doctor-card {
    background-color: var(--bg-light);
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 95, 74, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-gold);
}

.doctor-card:hover {
    box-shadow: 0 12px 30px rgba(26, 95, 74, 0.15);
    transform: translateY(-6px);
    border-top-color: var(--primary-dark);
}

@media (max-width: 640px) {
    .doctor-card:active {
        box-shadow: 0 8px 20px rgba(26, 95, 74, 0.12);
        transform: translateY(-4px);
    }
}

.doctor-image {
    width: 100%;
    height: 12rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    position: relative;
}

@media (min-width: 640px) {
    .doctor-image {
        height: 14rem;
    }
}

@media (min-width: 1024px) {
    .doctor-image {
        height: 16rem;
    }
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.08);
}

.doctor-info {
    padding: 1.5rem;
    text-align: center;
}

.doctor-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.specialty {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.doctor-contact {
    background-color: rgba(27, 107, 82, 0.05);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-gold);
}

.contact-item {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin: 0.35rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-item .icon {
    font-size: 1rem;
}

/* Booking Section */
.booking {
    background: linear-gradient(135deg, #f0f3f1 0%, #e8ebe9 100%);
    padding: 4rem 1rem;
}

@media (min-width: 768px) {
    .booking {
        padding: 5rem 1rem;
    }
}

@media (min-width: 1024px) {
    .booking {
        padding: 6rem 1rem;
    }
}

.booking-card {
    background-color: var(--bg-white);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(26, 95, 74, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .booking-card {
        flex-direction: row;
    }
}

.booking-info {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .booking-info {
        padding: 2.5rem;
    }
}

.booking-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.booking-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .booking-info h2 {
        font-size: 1.875rem;
    }
}

.booking-info p {
    opacity: 0.95;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item .icon {
    font-size: 1.5rem;
    width: 2rem;
    height: 2rem;
    background-color: rgba(196, 167, 71, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(196, 167, 71, 0.4);
}

.booking-form-wrapper {
    flex: 1;
    padding: 2rem;
}

@media (min-width: 768px) {
    .booking-form-wrapper {
        padding: 2.5rem;
    }
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(196, 167, 71, 0.1);
    background-color: white;
}

.form-group input[readonly] {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    font-weight: 700;
    cursor: not-allowed;
}

.form-group select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    -webkit-appearance: none;
    appearance: none;
    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='%231b6b52' 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 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    padding-left: 1rem;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(196, 167, 71, 0.1);
    background-color: white;
}

.form-group select:hover {
    border-color: var(--primary-light);
}

.form-group select.highlight {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(27, 107, 82, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(27, 107, 82, 0);
    }
}

.form-group .required {
    color: #e74c3c;
    font-weight: 700;
}

.form-hint {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.form-note {
    color: var(--text-light);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .form-row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.success-message {
    text-align: center;
    padding: 1.5rem;
    animation: slideIn 0.5s ease;
}

@media (min-width: 768px) {
    .success-message {
        padding: 2rem;
    }
}

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

.success-icon {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.booking-details {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    text-align: right;
    border-right: 3px solid var(--accent-gold);
    color: var(--primary-dark);
    font-size: 0.95rem;
    line-height: 1.8;
}

.doctor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 107, 82, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-card:hover .doctor-overlay {
    opacity: 1;
}

.doctor-overlay .btn {
    margin: 0;
}
}

.small-text {
    font-size: 0.875rem;
    color: #999;
.error-message {
    text-align: center;
    padding: 1.5rem;
    animation: slideIn 0.5s ease;
    background-color: #fef2f2;
    border-left: 4px solid #e74c3c;
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .error-message {
        padding: 2rem;
    }
}

.error-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-message h3 {
    font-size: 1.5rem;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: var(--text-light);
    margin-bottom: 1rem;
}    background-color: #fef2f2;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
}

.error-icon {
    font-size: 3rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.error-message h3 {
    font-size: 1.5rem;
    color: #991b1b;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: #7f1d1d;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0f4a38 100%);
    color: white;
    padding: 2.5rem 1rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .footer {
        padding: 3rem 1rem;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding: 4rem 1rem;
    }
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.footer-section h3,
.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.footer-section p {
    opacity: 0.85;
    line-height: 1.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0.85;
}

.services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0.85;
}

.services-list li::before {
    content: '◆ ';
    color: var(--accent-gold);
    margin-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .form-group input {
        font-size: 16px; /* منع التكبير على iOS */
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button, a {
    transition: all 0.3s ease;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header, .footer, .btn {
        display: none;
    }
}
