@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --header-height: 4.5rem;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  padding-top: var(--header-height);
}

/* Header */
.site-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  background-color: rgba(15, 39, 68, 0.97);
  box-shadow: 0 4px 24px rgba(9, 26, 46, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #D4AF37;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Homepage */
.policy-bg {
  background-color: #FAFBFC;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(15, 39, 68, 0.03) 39px, rgba(15, 39, 68, 0.03) 40px);
}

.hero-rule {
  background: linear-gradient(90deg, #D4AF37 0%, #D4AF37 48px, transparent 48px);
}

.comparison-row:nth-child(even) {
  background-color: rgba(15, 39, 68, 0.02);
}

.step-connector {
  border-left: 2px dashed rgba(15, 39, 68, 0.15);
}

@media (min-width: 768px) {
  .step-connector {
    border-left: none;
    border-top: 2px dashed rgba(15, 39, 68, 0.15);
  }
}

/* Coverage guides */
.guide-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
}

/* Form fields */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #0D9488;
  outline-offset: 1px;
}

.contact-form,
.contact-form > div {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.contact-form select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Success modal */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 26, 46, 0.65);
  cursor: pointer;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 28rem;
  padding: 2rem 1.75rem;
  background: #FAFBFC;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #0D9488;
  box-shadow: 0 24px 48px rgba(15, 39, 68, 0.22);
  text-align: center;
  transform: scale(0.92) translateY(8px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.success-modal.is-open .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  background: rgba(13, 148, 136, 0.12);
  border: 2px solid #0D9488;
  border-radius: 50%;
}

.modal-icon svg {
  width: 2rem;
  height: 2rem;
  color: #0D9488;
}

.modal-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0F2744;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.modal-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 1.75rem;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FAFBFC;
  background: #0F2744;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-btn:hover {
  background: #1a3d5c;
}

.modal-btn:focus {
  outline: 2px solid #0D9488;
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .modal-box {
    padding: 2.5rem 2rem;
  }

  .modal-title {
    font-size: 1.625rem;
  }
}