/* CSS Variables for theming */
:root {
  --background: #000000;
  --foreground: #ffffff;
  --secondary: #404040;
  --primary: #D52B1E;
  --text-muted: #a3a3a3;
  --border: #333333;
  --hero-bg: rgb(29, 28, 28);
  --form-bg: #404040;
  --input-bg: #2a2a2a;
  --footer-bg: #000000;
  --footer-border: #333333;
  --primary-hover: #b91c1c;
  --card-bg: #1a1a1a;
  --card-hover: #2a2a2a;
}

[data-theme="light"] {
  --background: #ffffff;
  --foreground: #000000;
  --secondary: #f5f5f5;
  --primary: #D52B1E;
  --text-muted: #666666;
  --border: #e5e5e5;
  --hero-bg: #f8f8f8;
  --form-bg: #f8f8f8;
  --input-bg: #ffffff;
  --footer-bg: #f5f5f5;
  --footer-border: #e5e5e5;
  --primary-hover: #b91c1c;
  --card-bg: #e8e8e8;
  --card-hover: #e8e8e8;
}

/* Navbar Styles - Ensure fixed positioning */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: var(--background) !important;
  border-bottom: 1px solid var(--border) !important;
  z-index: 1000 !important;
  transition: background-color 0.3s ease !important;
}

.secondary-navbar {
  position: fixed !important;
  top: 80px !important;
  left: 0 !important;
  right: 0 !important;
  background: var(--secondary) !important;
  border-bottom: 1px solid var(--border) !important;
  z-index: 999 !important;
  transition: background-color 0.3s ease !important;
}

/* Main Layout */
.main {
  padding-top: 20px;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
}

/* Hero Section */
.appointment-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
  background: var(--hero-bg);
  padding: 4rem 2rem;
  padding-top: 0;
  margin-top: 0;
  padding-top: 4rem;
  transition: background-color 0.3s ease;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-highlight {
  color: var(--primary);
  font-weight: 600;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.hero-icon svg {
  filter: brightness(0) saturate(100%) invert(100%);
  transition: filter 0.3s ease;
  margin-top: 1rem;
}

[data-theme="light"] .hero-icon svg {
  filter: brightness(0) saturate(100%) invert(0%);
}

/* Form Section */
.appointment-form {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.form-container {
  background: var(--hero-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

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

.form-group label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.5rem;
  color: var(--foreground);
  z-index: 1;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

.input-wrapper .input-icon + input,
.input-wrapper .input-icon + select {
  padding-left: 3.5rem;
  padding-right: 1.5rem;
}

.input-wrapper input.has-default-value,
.input-wrapper select.has-default-value {
  color: var(--text-muted);
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.1);
  color: var(--foreground);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: var(--foreground);
  opacity: 0.7;
  font-style: italic;
}

.input-wrapper input:focus::placeholder,
.input-wrapper textarea:focus::placeholder {
  opacity: 0.5;
}

/* Submit Button */
.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.submit-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  margin-top: 4rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .appointment-form {
    padding: 1rem;
    max-width: 100%;
  }
  
  .form-container {
    background: #404040 !important;
    padding: 2rem;
  }
  
  [data-theme="light"] .form-container {
    background: #f5f5f5 !important;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .form-container {
    background: #404040 !important;
    padding: 1.5rem;
  }
  
  [data-theme="light"] .form-container {
    background: #f5f5f5 !important;
  }
  
  .submit-button {
    width: 100%;
    padding: 1rem;
  }
} 