/* --- PREMIUM MINIMALIST DESIGN SYSTEM --- */
:root {
  --primary: #ffffff;
  --secondary: #6d001a;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --text-muted: #8e8e93;
  --border: #222222;
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px; /* Prevents content from hiding behind sticky header */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- REUSABLE STRUCTURES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 5rem 0 8rem 0;
}

.page-title {
  font-size: 3rem;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-bottom: 1rem;
  text-align: center;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4rem;
}

.page-subtitle span {
  color: var(--secondary);
  font-weight: 700;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn-primary:hover {
  background-color: #850020;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-dark);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 6px;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* --- FORM & APPOINTMENT LAYOUTS (FIXED OVERFLOW) --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

/* Forces the textarea container to span across both grid columns cleanly */
.form-grid .form-group.full-width {
  grid-column: span 2;
}

label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

/* Responsive, non-overflowing input handling */
input,
select,
textarea {
  background-color: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 1.2rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  border-radius: 2px;
  width: 100%; /* Prevents fields from sizing past container limits */
  max-width: 100%;
}

textarea {
  resize: vertical; /* Prevents horizontal box breaking */
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background-color: var(--bg-dark);
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  /* Drops grid columns down to 1 stack layer on mobile devices */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-grid .form-group.full-width {
    grid-column: span 1;
  }
}
