/* ===================================
   STYLES.CSS — Dr. Arash Falahat
   فوق تخصص قلب و عروق | ارومیه
=================================== */

/* ===== VARIABLES ===== */
:root {
    --primary:        #1a5276;
    --primary-light:  #2980b9;
    --primary-dark:   #154360;
    --accent:         #e74c3c;
    --accent-light:   #f1948a;
    --gold:           #d4ac0d;
    --white:          #ffffff;
    --off-white:      #f8f9fa;
    --light-gray:     #ecf0f1;
    --mid-gray:       #bdc3c7;
    --text-dark:      #1c2833;
    --text-body:      #34495e;
    --text-muted:     #7f8c8d;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:      0 8px 40px rgba(0,0,0,0.16);
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;
    --radius-full:    999px;
    --transition:     all 0.3s ease;
    --font:           'Vazirmatn', sans-serif;
    --header-height:  70px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text-body);
    background-color: var(--white);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font);
    border: none;
    background: none;
}

input, select, textarea {
    font-family: var(--font);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 82, 118, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
}

/* ===== SECTION SHARED ===== */
section {
    padding: 5rem 0;
}

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

.section-tag {
    display: inline-block;
    background: rgba(26, 82, 118, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to left, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    margin: 0 auto 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   HEADER / NAVBAR
=================================== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.nav-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(26, 82, 118, 0.07);
}

.nav-links .btn-appointment {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.nav-links .btn-appointment:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 82, 118, 0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 4px;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: var(--transition);
}

.hamburger span {
    display: block;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ===================================
   HERO SECTION
=================================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a6fa8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Decorative circles */
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.06);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-desc {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
}

.badge i {
    font-size: 0.75rem;
    color: var(--gold);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.hero-cta .btn-primary:hover {
    background: var(--off-white);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero-cta .btn-outline {
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
}

.hero-cta .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.image-frame {
    position: relative;
    width: 360px;
    max-width: 100%;
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255,255,255,0.15);
    z-index: 0;
}

.image-frame::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.image-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: top center;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-lg);
}

/* Hero Stats Bar */
.hero-stats {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-item strong {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.stat-item span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* Dividers between stats */
.stat-item:not(:last-child) {
    border-left: 1px solid rgba(255,255,255,0.15);
}

/* ===================================
   ABOUT SECTION
=================================== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: top center;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-md);
}

.about-img-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.about-img-badge i {
    color: var(--accent-light);
    font-size: 1rem;
}

.about-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--text-body);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.about-content strong {
    color: var(--primary);
}

.education-list {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.education-list h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-list h4 i {
    color: var(--primary);
}

.education-list ul {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.education-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

.education-list li i {
    color: var(--primary-light);
    font-size: 0.85rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.about-contact-quick {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ===================================
   SERVICES SECTION
=================================== */
.services {
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to left, var(--primary-light), var(--primary));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: right;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card--highlight {
    border-color: rgba(26, 82, 118, 0.15);
    background: linear-gradient(135deg, #eaf4fb, var(--white));
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    transition: var(--transition);
}

.service-icon i {
    font-size: 1.6rem;
    color: var(--white);
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-3deg);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(26, 82, 118, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.service-card--highlight .service-location {
    color: var(--accent);
    background: rgba(231, 76, 60, 0.08);
}

/* ===================================
   INSURANCE SECTION
=================================== */
.insurance {
    background: var(--white);
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insurance-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.insurance-card:hover {
    border-color: var(--primary-light);
    background: rgba(26, 82, 118, 0.03);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.insurance-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(26,82,118,0.1), rgba(41,128,185,0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.insurance-icon i {
    font-size: 1.4rem;
    color: var(--primary);
}

.insurance-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.insurance-card p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.insurance-note {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--off-white);
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--mid-gray);
}

.insurance-note i {
    color: var(--primary-light);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===================================
   GALLERY SECTION
=================================== */
.gallery {
    background: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item--large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,50,80,0.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===================================
   APPOINTMENT SECTION
=================================== */
.appointment {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.appointment::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.appointment .section-tag {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

.appointment .section-title {
    color: var(--white);
}

.appointment .section-divider {
    background: linear-gradient(to left, rgba(255,255,255,0.5), var(--white));
}

.appointment .section-desc {
    color: rgba(255,255,255,0.7);
}

.appointment-wrapper {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Form */
.appointment-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}
/* ===== Booking Section ===== */
.booking-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  background-color: #f8fafc;
  text-align: center;
  direction: rtl;
  font-family: "Vazirmatn", "Segoe UI", sans-serif;
}

.booking-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 12px;
}

.booking-subtitle {
  font-size: 1rem;
  color: #5a6a7a;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.8;
}

/* ===== Button Container ===== */
.booking-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ===== Base Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
  min-width: 200px;
}

.btn:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

/* ===== Primary Button (Doctor-Yab) ===== */
.btn-primary {
  background-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
}

/* ===== Secondary Button (Doctoreto) ===== */
.btn-secondary {
  background-color: #ffffff;
  color: #1d4ed8;
  border: 2px solid #1d4ed8;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
}

.btn-secondary:hover {
  background-color: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.2);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.1);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .booking-title {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
    min-width: unset;
  }
}


.required {
    color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--mid-gray);
    font-size: 0.85rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.12);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-error {
    font-size: 0.78rem;
    color: var(--accent);
    min-height: 1rem;
    display: block;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select arrow */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237f8c8d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.8rem center;
    padding-left: 2rem;
}

/* Appointment Info Panel */
.appointment-info {
    color: var(--white);
}
/* Your normal desktop CSS goes above this */

/* Mobile styles: This applies ONLY to screens narrower than 768 pixels (phones/small tablets) */
/* ===================================
   RESPONSIVE (Tablet & Mobile)
=================================== */
@media (max-width: 992px) {
    /* --- General Adjustments --- */
    html {
        font-size: 15px;
    }

    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* --- Header & Navbar (Hamburger Menu) --- */
    .hamburger {
        display: flex; /* Show hamburger on mobile */
        z-index: 1001; 
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0; /* Slide in when active */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem; /* Larger text for easier tapping */
        font-weight: 600;
        display: block;
        padding: 1rem;
        color: var(--text-dark);
    }
    
    .nav-links .btn-appointment {
        font-size: 1.2rem;
        padding: 0.75rem 2rem;
    }

    /* --- Hero Section --- */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 2rem);
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr; /* Stack hero content vertically */
        gap: 2.5rem;
        padding-bottom: 4rem;
    }

    .hero-text {
        grid-row: 1; /* Ensure text is on top */
    }
    
    .hero-desc, .hero-title {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-badges, .hero-cta {
        justify-content: center;
    }

    .image-frame {
        width: 280px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
        gap: 1.5rem;
    }
    
    .stat-item:not(:last-child) { border-left: none; }
    .stat-item:nth-child(odd) { border-left: 1px solid rgba(255,255,255,0.15); }
    .stat-item:nth-child(1), .stat-item:nth-child(2) { border-left: none; }


    /* --- About Section --- */
    .about-grid {
        grid-template-columns: 1fr; /* Stack about content vertically */
        gap: 2.5rem;
    }

    .about-image {
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* --- Other Sections --- */
    .services-grid,
    .insurance-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item--large { grid-column: span 1; }

    .appointment-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row { grid-template-columns: 1fr; }
    .contact-map { height: 300px; }
}
/* ===== تنظیمات کلی بخش نوبت‌دهی ===== */
#booking-section {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f5f0 100%);
  padding: 50px 16px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
}

#booking-section *,
#booking-section *::before,
#booking-section *::after {
  box-sizing: border-box;
}

.booking-container {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 10px 40px rgba(20, 60, 120, 0.12);
}

/* ===== سربرگ ===== */
.booking-header {
  text-align: center;
  margin-bottom: 28px;
}

.booking-header h2 {
  color: #1a3c6e;
  font-size: 1.6rem;
  margin: 0 0 10px;
  font-weight: 700;
}

.booking-header p {
  color: #6b7a90;
  font-size: 0.9rem;
  line-height: 1.9;
  margin: 0;
}

/* ===== گروه‌های فرم ===== */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  color: #2c4a72;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #dbe4f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: #1f2d3d;
  background: #fafcff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

/* متن کم‌رنگ (placeholder) داخل کادرها */
.form-group input::placeholder {
  color: #a9b6c9;
  font-size: 0.92rem;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #2e7d5b;
  box-shadow: 0 0 0 4px rgba(46, 125, 91, 0.12);
  background: #ffffff;
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: #d64545;
}

.form-group select:disabled {
  background: #f0f2f6;
  color: #9aa5b5;
  cursor: not-allowed;
}

/* ===== پیام خطای هر فیلد ===== */
.error-msg {
  display: block;
  color: #d64545;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 1em;
}

/* ===== نوار انتخاب تاریخ (۷ روز آینده) ===== */
.date-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day-card {
  border: 2px solid #dbe4f0;
  border-radius: 12px;
  background: #fafcff;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.day-card .day-name {
  font-size: 0.72rem;
  color: #6b7a90;
  font-weight: 600;
}

.day-card .day-number {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a3c6e;
}

.day-card .day-month {
  font-size: 0.68rem;
  color: #8a97ab;
}

/* حالت هاور روزهای قابل انتخاب */
.day-card:not(:disabled):hover {
  border-color: #2e7d5b;
  transform: translateY(-2px);
}

/* روز انتخاب‌شده */
.day-card.selected {
  background: #2e7d5b;
  border-color: #2e7d5b;
}

.day-card.selected .day-name,
.day-card.selected .day-number,
.day-card.selected .day-month {
  color: #ffffff;
}

/* روزهای تعطیل (پنجشنبه و جمعه) - نمایش داده می‌شوند ولی غیرفعال */
.day-card:disabled,
.day-card.off-day {
  background: #f0f2f6;
  border-color: #e4e8ef;
  cursor: not-allowed;
  opacity: 0.55;
}

.day-card:disabled .day-name,
.day-card.off-day .day-name {
  color: #b0293a;
  font-size: 0.65rem;
}

.day-card:disabled:hover,
.day-card.off-day:hover {
  transform: none;
  border-color: #e4e8ef;
}

/* ===== دکمه ثبت نوبت ===== */
#submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2e7d5b, #1f6349);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#submit-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

#submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* اسپینر حالت در حال ارسال */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== جعبه تأیید نوبت ===== */
.confirmation-box {
  text-align: center;
  padding: 20px 10px;
  animation: fadeInUp 0.4s ease;
}

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

.confirmation-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: #2e7d5b;
  color: #ffffff;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-box h3 {
  color: #1a3c6e;
  font-size: 1.25rem;
  margin: 0 0 14px;
}

#confirmation-details {
  background: #f0f6ff;
  border-radius: 12px;
  padding: 16px;
  color: #2c4a72;
  font-size: 0.95rem;
  line-height: 2.1;
  margin: 0 0 14px;
}

.confirmation-note {
  color: #8a6d1f;
  background: #fdf6e3;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin: 0 0 20px;
}

#new-booking-btn {
  padding: 11px 28px;
  background: transparent;
  color: #2e7d5b;
  border: 2px solid #2e7d5b;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#new-booking-btn:hover {
  background: #2e7d5b;
  color: #ffffff;
}

/* ===== خطای عمومی ===== */
.global-error {
  margin-top: 16px;
  background: #fdecec;
  color: #b0293a;
  border: 1px solid #f3c2c2;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.8;
}

/* ===== ریسپانسیو موبایل ===== */
@media (max-width: 480px) {
  .booking-container {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .booking-header h2 {
    font-size: 1.35rem;
  }

  .date-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .day-card .day-number {
    font-size: 1rem;
  }
}






