/* Balanced Med Life - CSS Framework */
:root {
    --primary: #0781eb;
    --secondary: #0054be;
    --accent: #016fce;
    --dark: #2b2d31;
    --light: #f8f9fa;
    --text: #343a40;
    --text-light: #6c757d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito Sans', sans-serif; line-height: 1.6; color: var(--text); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { position: fixed; top: 0; width: 100%; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; }
.nav { padding: 15px 0; }
.nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.nav-brand i { font-size: 2rem; }
.nav-menu { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--text); font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--primary); }
.nav-toggle { display: none; flex-direction: column; cursor: pointer; }
.nav-toggle span { width: 25px; height: 3px; background: var(--primary); margin: 3px 0; transition: 0.3s; }

/* Hero */
.hero { padding: 120px 0 80px; background: linear-gradient(135deg, rgba(0, 84, 190, 0.1), rgba(2, 51, 112, 0.05)); }
.hero-content { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 25px; line-height: 1.2; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 40px; line-height: 1.8; }
.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; }
.stat { text-align: center; }
.stat .number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat .label { font-size: 14px; color: var(--text-light); }
.hero-actions { display: flex; gap: 20px; }
.hero-visual { text-align: center; }
.balance-icon { width: 200px; height: 200px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.balance-icon i { font-size: 5rem; color: white; }

/* Buttons */
.btn { display: inline-block; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--secondary); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* Services */
.services { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; color: var(--text-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-item { background: white; padding: 40px 30px; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: all 0.3s; border: 2px solid transparent; }
.service-item:hover { transform: translateY(-10px); border-color: var(--primary); }
.service-item.featured { border-color: var(--primary); background: linear-gradient(135deg, rgba(0, 84, 190, 0.05), rgba(2, 51, 112, 0.02)); }
.service-item.special { border-color: var(--accent); }
.service-icon { width: 80px; height: 80px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; }
.service-icon i { font-size: 2rem; color: white; }
.service-item h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
.service-item p { color: var(--text-light); line-height: 1.6; }

/* Appointment */
.appointment { padding: 100px 0; background: var(--primary); color: white; }
.appointment-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.appointment-info h2 { font-size: 2.5rem; margin-bottom: 20px; }
.appointment-info p { font-size: 1.1rem; opacity: 0.9; }
.appointment-form { background: rgba(255,255,255,0.1); padding: 40px; border-radius: 20px; backdrop-filter: blur(10px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.appointment-form input, .appointment-form select, .appointment-form textarea { width: 100%; padding: 15px; border: none; border-radius: 10px; font-size: 16px; background: rgba(255,255,255,0.2); color: white; }
.appointment-form input::placeholder, .appointment-form textarea::placeholder { color: rgba(255,255,255,0.7); }
.appointment-form button { width: 100%; padding: 18px; margin-top: 20px; }

/* Footer */
.footer { background: var(--dark); color: white; padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.footer-brand p { color: #adb5bd; line-height: 1.7; }
.link-group h4 { color: var(--primary); margin-bottom: 15px; }
.link-group ul { list-style: none; }
.link-group li { margin-bottom: 8px; }
.link-group a { color: #adb5bd; text-decoration: none; transition: color 0.3s; }
.link-group a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #495057; padding-top: 30px; text-align: center; }
.footer-bottom p { color: #6c757d; }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.modal-content { background: white; margin: 15% auto; padding: 40px; border-radius: 20px; width: 90%; max-width: 500px; text-align: left; position: relative; }
.modal-icon i { font-size: 4rem; color: var(--primary); margin-bottom: 20px; }
.modal-content h2 { margin-bottom: 15px; }
.modal-content p { color: var(--text-light); margin-bottom: 30px; }
.close { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }
    .hero-content, .appointment-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-stats { justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

 /* Modal Base Styles */
    .modal {
      display: none; 
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.5);
    }

    .modal-content {
      background-color: #fff;
      margin: 10% auto;
      padding: 20px;
      border-radius: 8px;
      width: 90%;
      max-width: 500px;
      position: relative;
      box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    .close {
      color: #aaa;
      float: right;
      font-size: 28px;
      font-weight: bold;
      position: absolute;
      right: 20px;
      top: 10px;
      cursor: pointer;
    }

    .close:hover {
      color: #000;
    }

    label {
      display: block;
      margin-top: 15px;
      font-weight: bold;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"] {
      width: 100%;
      padding: 8px;
      margin-top: 5px;
      box-sizing: border-box;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    .checkbox-group {
      margin-top: 15px;
    }

    .modal-footer {
      text-align: right;
      margin-top: 20px;
    }

    .modal-footer button {
      background-color: #0781eb;
    }

    @media (max-width: 600px) {
      .modal-content {
        margin: 20% auto;
      }
    }

    .about-container {
      max-width: 1200px;
      margin: 0 auto;
      background-color: white;
      padding: 2rem;
      border-radius: 8px;
      
    }

    .about-container h2 {
      color: var(--secondary);
      margin-bottom: 1rem;
    }

    .about-container p {
      line-height: 1.6;
      margin-bottom: 1rem;
      color: var(--text);
    }

    .about-container strong {
      color: var(--secondary);
    }