/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #0b4f8a;
  --primary-dark: #083a66;
  --primary-light: #e8f1f8;
  --accent: #00a3a1;
  --accent-hover: #008f8d;
  --text: #1a2332;
  --text-muted: #5a6a7e;
  --border: #d1dbe6;
  --bg: #f0f7fb;
  --white: #ffffff;
  --danger: #c0392b;
  --success: #1e7e34;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(11, 79, 138, 0.08);
  --shadow-hover: 0 8px 30px rgba(11, 79, 138, 0.14);
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* More colorful / less bland background */
  background-color: #e8f4fc;
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(0, 163, 161, 0.18), transparent 50%),
    radial-gradient(ellipse 100% 70% at 95% 10%, rgba(11, 79, 138, 0.16), transparent 45%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 163, 161, 0.12), transparent 50%),
    linear-gradient(165deg, #eaf6fd 0%, #f0f7fb 40%, #e6f3f9 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hidden { display: none !important; }

/* ===== Emergency Banner ===== */
.emergency-banner {
  background: #9b1c1c;
  color: white;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.emergency-banner a {
  color: #ffd7d7;
  font-weight: 700;
  text-decoration: underline;
}
.emergency-banner a:hover { color: white; }

/* ===== Header ===== */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 79, 138, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}
.logo:hover {
  opacity: 0.85;
  color: var(--primary);
}
.logo span {
  color: var(--accent);
}
a.logo:hover span {
  color: var(--accent);
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
  line-height: 1.2;
}
.brand-text .tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-contact {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.header-contact .phone {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}
.header-contact .local-phone {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Hero ===== */
.hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}
.hero h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Selection Cards ===== */
.selection-section {
  padding: 1rem 0 3.5rem;
}

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

.card {
  background: var(--white);
  border: 2px solid rgba(11, 79, 138, 0.18);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-family: inherit;
  color: inherit;
  /* 3-D floating base shadow */
  box-shadow:
    0 6px 10px rgba(11, 79, 138, 0.05),
    0 14px 28px rgba(11, 79, 138, 0.09),
    0 28px 50px rgba(11, 79, 138, 0.07);
  transform: translateY(0);
}

.card:hover,
.card:focus {
  border-color: var(--primary);
  /* Higher floating lift on hover */
  box-shadow:
    0 12px 18px rgba(11, 79, 138, 0.07),
    0 28px 55px rgba(11, 79, 138, 0.14),
    0 50px 90px rgba(11, 79, 138, 0.12);
  transform: translateY(-18px);
  outline: none;
}

.card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.card-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(11, 79, 138, 0.1);
}
.card:hover .card-icon {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 16px rgba(11, 79, 138, 0.25);
  transform: scale(1.06);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ===== Form Section ===== */
.form-section {
  padding: 1.5rem 0 4rem;
  animation: fadeIn 0.35s ease;
}

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

.back-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  transition: color var(--transition);
}
.back-btn:hover { color: var(--accent); }
.back-btn.secondary {
  margin-top: 1.5rem;
  background: var(--primary);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
}
.back-btn.secondary:hover {
  background: var(--primary-dark);
  color: white;
}

.form-header {
  margin-bottom: 1.75rem;
}
.form-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}
.form-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Forms */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 780px;
}

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

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.form-group label .req {
  color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fafcfd;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 79, 138, 0.12);
  background: white;
}

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

.form-group select {
  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='%235a6a7e' d='M6 8.825L1.175 4 2.05 3.125 6 7.075 9.95 3.125 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem 0.5rem;
  margin-bottom: 1.5rem;
}
.fieldset legend {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0 0.5rem;
}

.form-notice {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0 1.75rem;
  font-size: 0.88rem;
  color: #6b5a1e;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s;
}
.submit-btn:hover {
  background: var(--primary-dark);
}
.submit-btn:active {
  transform: scale(0.98);
}
.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Success */
.success-message {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 560px;
  margin: 0 auto;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: #e6f4ea;
  color: var(--success);
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.success-message h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}
.success-message p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.success-note {
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark);
  color: #c5d5e5;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.site-footer a {
  color: #a8c4e0;
}
.site-footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
}
.footer-brand .logo:hover {
  color: white;
  opacity: 0.9;
}
.footer-brand .logo span { color: var(--accent); }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-links h4,
.footer-contact h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.45rem;
}
.footer-links a {
  font-size: 0.92rem;
}

.footer-contact p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom .disclaimer {
  margin-top: 0.4rem;
  opacity: 0.75;
  font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .header-contact {
    text-align: left;
  }
  .brand-text h1 {
    font-size: 0.95rem;
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .form-row.two-col {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 1.5rem 1.15rem;
  }
  .site-header {
    position: relative;
  }
}

/* Loading state for submit */
.submit-btn.loading {
  position: relative;
  color: transparent;
}
.submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Concierge Button & Modal ===== */
.concierge-cta {
  display: flex;
  justify-content: flex-end;
  margin: 1.75rem 0 1.25rem;
}

.concierge-btn {
  background: linear-gradient(135deg, #00a3a1, #0b4f8a);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 800;
  padding: 0.95rem 1.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 163, 161, 0.35);
  letter-spacing: 0.02em;
}

.concierge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 163, 161, 0.45);
  background: linear-gradient(135deg, #00b8b5, #0d5fa5);
}

.concierge-btn:active {
  transform: translateY(0);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 30, 50, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.25rem;
  animation: fadeIn 0.25s ease;
}

.modal {
  background: white;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2rem 1.75rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #8a9bb0;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s;
}

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

.modal h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
  padding-right: 1.5rem;
}

.modal-intro {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.benefits-list {
  margin: 0 0 1.5rem 1.2rem;
  padding: 0;
}

.benefits-list li {
  margin-bottom: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  font-size: 0.95rem;
  padding-left: 0.35rem;
}

.benefits-list li::marker {
  color: var(--accent);
  font-weight: 700;
}

.modal-note {
  background: var(--primary-light);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 1.4rem;
  line-height: 1.45;
}

.modal-note a {
  font-weight: 700;
}

.modal-ok {
  display: block;
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-ok:hover {
  background: var(--primary-dark);
}

@media (max-width: 640px) {
  .concierge-cta {
    justify-content: center;
  }
  .modal {
    padding: 1.5rem 1.25rem 1.4rem;
  }
}

/* Concierge contact box inside modal */
.concierge-contact-box {
  background: linear-gradient(135deg, #e8f7f6, #e0f2fe);
  border: 2px solid rgba(0, 163, 161, 0.4);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.contact-box-heading {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.4;
}

.concierge-link {
  display: inline-block;
  background: linear-gradient(135deg, #00a3a1, #0b4f8a);
  color: white !important;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 12px rgba(0, 163, 161, 0.3);
}

.concierge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 163, 161, 0.4);
  background: linear-gradient(135deg, #00b8b5, #0d5fa5);
  color: white !important;
}

.contact-box-phone {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-box-phone a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.contact-box-phone a:hover {
  text-decoration: underline;
}
