/**
 * Oceanside Blinds & Shades
 * Navy & Gold Luxury Theme
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Primary Colors - Navy */
  --primary: #1e3a5f;
  --primary-light: #2d4a6f;
  --primary-dark: #152a47;

  /* Accent Colors - Gold */
  --accent: #c9a227;
  --accent-light: #e8d48b;
  --accent-dark: #a68921;

  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-dark: #1a1a2e;
  --text: #1a1a2e;
  --text-light: #ffffff;
  --muted: #6c757d;
  --border: #e9ecef;

  /* Spacing */
  --container: 1200px;
  --section-padding: 80px;
  --section-padding-mobile: 48px;

  /* Border Radius */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 58, 95, 0.12);
  --shadow-lg: 0 16px 48px rgba(30, 58, 95, 0.16);

  /* Transitions */
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 600px;
}

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

.text-muted {
  color: var(--muted);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--section-padding-mobile) 0;
  }
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-light);
}

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

.btn-ghost:hover {
  background: rgba(30, 58, 95, 0.08);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  font-weight: 600;
  color: var(--primary);
}

.nav-phone:hover {
  color: var(--accent);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .nav-cta .btn {
    display: none;
  }

  .logo-text {
    font-size: 1rem;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="rgba(201,162,39,0.1)"/></svg>');
  background-size: cover;
  opacity: 0.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badge img {
  height: 20px;
  width: auto;
}

@media (max-width: 992px) {
  .hero {
    padding: 140px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .trust-badges {
    justify-content: center;
  }

  .cta-group {
    justify-content: center;
  }
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--bg-alt);
  padding: 32px 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 20px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  font-size: 1.5rem;
}

.trust-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .trust-bar-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-dark {
  background: var(--primary);
  color: var(--text-light);
  border-color: transparent;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
  background: var(--bg);
}

.product-card {
  display: block;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-content {
  padding: 20px;
}

.product-content h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.product-content p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us {
  background: var(--bg-alt);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-us-content ul {
  margin-top: 24px;
}

.why-us-content li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.0625rem;
}

.why-us-content li::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 2px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231e3a5f"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.why-us-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--primary);
  color: var(--text-light);
}

.how-it-works .section-title,
.how-it-works h2 {
  color: var(--text-light);
}

.how-it-works .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
}

.step h3 {
  color: var(--text-light);
  margin-bottom: 12px;
}

.step p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SERVICE AREA
   ============================================ */
.service-area {
  background: var(--bg-alt);
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.chip {
  padding: 10px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--transition);
}

.chip:hover {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

/* ============================================
   REVIEWS / TESTIMONIALS
   ============================================ */
.reviews {
  background: var(--bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.review-stars {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.review-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  color: var(--text);
}

.review-author {
  font-weight: 600;
  color: var(--primary);
}

.review-location {
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: var(--bg-alt);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.faq-icon::before {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
}

.faq-item.active .faq-icon {
  background: var(--accent);
}

.faq-item.active .faq-icon::before {
  content: '-';
  color: var(--primary-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--muted);
  line-height: 1.7;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-highlights {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.about-highlight::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   EMAIL SIGNUP
   ============================================ */
.email-signup {
  background: var(--primary);
  padding: 64px 0;
}

.email-signup-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.email-signup h2 {
  color: var(--text-light);
  margin-bottom: 12px;
}

.email-signup p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.email-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.email-form input[type="email"]:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 480px) {
  .email-form {
    flex-direction: column;
  }
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  background: var(--bg-alt);
  text-align: center;
}

.final-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.final-cta h2 {
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a svg {
  width: 40px;
  height: 40px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social a:hover svg {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer-social a:hover span {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--accent);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-cta-inner {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-cta .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 80px;
  }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  background: var(--primary);
  color: var(--text-light);
}

.modal-header {
  padding: 32px 32px 0;
  text-align: center;
}

.modal-header h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.modal-header p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.modal-form {
  padding: 24px 32px 32px;
}

.modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-form .form-group {
  margin-bottom: 16px;
}

.modal-form .form-group label {
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.modal-form .form-group input,
.modal-form .form-group textarea,
.modal-form .form-group select {
  padding: 12px 14px;
  font-size: 0.9375rem;
}

.modal-form .form-group select {
  width: 100%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  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='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.modal-form .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.modal-form .form-group input[type="date"] {
  cursor: pointer;
}

.form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 0;
}

.modal-success {
  padding: 48px 32px;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.modal-success h3 {
  margin-bottom: 12px;
}

.modal-success p {
  color: var(--muted);
  margin-bottom: 24px;
}

@media (max-width: 540px) {
  .modal-form .form-row {
    grid-template-columns: 1fr;
  }

  .modal-header,
  .modal-form {
    padding-left: 20px;
    padding-right: 20px;
  }
}
