.contact-bg {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-image: url('/contact.webp'), linear-gradient(135deg, #0c0c0c 80%, #1a1a1a 100%);
  background-position: center center, center center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

.contact-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,20,30,0.88) 60%, rgba(40,40,58,0.98) 100%);
  z-index: 1;
}

.hero-section,
.form-section,
.service-areas-section,
.loading-overlay,
.modal-overlay {
  position: relative;
  z-index: 2;
}

/* Spruced up heading styles */
.hero-section {
  padding: 4rem 2rem 2rem;
  text-align: center;
  margin-bottom: 0;
}
.hero-badge {
  display: inline-block;
  padding: 0.7em 2.2em;
  border-radius: 40px;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(90deg, #60a5fa 45%, #a855f7 100%);
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.07em;
  box-shadow: 0 2px 12px rgba(59,130,246,0.09);
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(96,165,250,0.16);
  line-height: 1.1;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 1.25rem;
  margin-bottom: 1.7rem;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 1px 8px #181a23;
}
.hero-highlight {
  color: #60a5fa;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Carousel and icons layout */
.carousel-icons-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  position: relative;
  z-index: 2;
}

.carousel-content {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 320px;
}

.contact-icons-grid {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2.7rem;
  margin: 0;
  max-width: 170px;
  z-index: 3;
  position: relative;
}

/* Icon wrapper tweaks */
.contact-icon-wrapper {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Circle for icon */
.contact-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0,0,0,0.56);
  border: 2px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.46);
}
.contact-icon-wrapper:hover .contact-icon-circle {
  border-color: #60a5fa;
  box-shadow: 0 12px 40px rgba(59,130,246,0.22);
  background: rgba(0,0,0,0.76);
}
.contact-icon-emoji {
  font-size: 1.6rem;
  color: #60a5fa;
}
.contact-icon-wrapper .contact-icon-circle .contact-icon-emoji {
  transition: color 0.22s;
}
.contact-icon-wrapper:hover .contact-icon-emoji {
  color: #a855f7;
}

/* Tooltip appears to the right */
.contact-tooltip {
  position: absolute;
  left: 110%;
  top: 50%;
  transform: translateY(-50%);
  min-width: 210px;
  background: rgba(24,26,35,0.98);
  color: #fff;
  padding: 1em 1.2em;
  border-radius: 1em;
  box-shadow: 0 6px 24px rgba(59,130,246,0.09);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, left 0.3s;
  text-align: left;
  z-index: 10;
  white-space: normal;
}
.contact-icon-wrapper:hover .contact-tooltip,
.contact-icon-wrapper:focus .contact-tooltip {
  opacity: 1;
  left: 110%;
}

.tooltip-title {
  font-weight: 700;
  font-size: 1.05em;
  margin-bottom: 0.15em;
  color: #60a5fa;
}
.tooltip-text {
  font-size: 0.98em;
  color: #cbd5e1;
  margin-bottom: 0.35em;
}
.tooltip-action {
  font-size: 0.95em;
  font-weight: 600;
  color: #a855f7;
}

/* Hide tooltips on mobile (max-width: 600px) */
@media (max-width:600px) {
  .contact-tooltip {
    display: none !important;
  }
}

/* Carousel responsive */
@media (max-width:1100px) {
  .carousel-icons-container {
    gap: 2rem;
    max-width: 100%;
  }
  .contact-icons-grid {
    max-width: 120px;
  }
  .carousel-content {
    flex: 1 1 280px;
  }
}
@media (max-width:900px) {
  .carousel-icons-container {
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
    margin-bottom: 2rem;
  }
  .carousel-content {
    width: 100%;
    min-width: 0;
  }
  .contact-icons-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    max-width: none;
    gap: 2rem;
    margin: 2rem 0 0 0;
  }
  .contact-tooltip {
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
    min-width: 210px;
  }
}
@media (max-width:600px) {
  .carousel-icons-container {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
  }
  .hero-title { font-size: 1.6rem; }
  .contact-icons-grid {
    flex-direction: row;
    gap: 1.3rem;
    align-items: flex-start;
    justify-content: center;
    max-width: none;
    margin: 1.2rem 0 0 0;
  }
  .contact-icon-circle {
    width: 52px;
    height: 52px;
  }
  .contact-tooltip {
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
    min-width: 170px;
    font-size: 0.95em;
    padding: 0.8em 0.9em;
  }
}

.tooltip-title {
  font-weight: 700;
  font-size: 1.05em;
  margin-bottom: 0.15em;
  color: #60a5fa;
}
.tooltip-text {
  font-size: 0.98em;
  color: #cbd5e1;
  margin-bottom: 0.35em;
}
.tooltip-action {
  font-size: 0.95em;
  font-weight: 600;
  color: #a855f7;
}

/* Form */
.form-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.form-container {
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.33);
  background: rgba(10,10,20,0.86);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
}
.form-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  background: linear-gradient(135deg,#60a5fa,#a855f7);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.08em;
  margin-bottom: 1.1em;
  appearance: none; /* Remove native styling on some browsers */
}

.form-select option {
  background: #181a23; /* Dark background for dropdown options */
  color: #60a5fa;      /* Light blue text for readability */
}
.form-label {
  font-weight: 600;
  margin-bottom: 0.25em;
  color: #60a5fa;
  display: block;
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grid {
  display: flex;
  gap: 1.5em;
  margin-bottom: 1em;
}
.form-group {
  flex: 1;
  min-width: 150px;
}
.file-input-container {
  display: flex;
  align-items: center;
  gap: 1em;
}
.file-input {
  display: none;
}
.file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  cursor: pointer;
  font-size: 1em;
  background: rgba(96,165,250,0.09);
  color: #60a5fa;
  border-radius: 1em;
  padding: 0.5em 1em;
  border: 1px solid #60a5fa;
  transition: background 0.19s, color 0.19s;
}
.file-label:hover {
  background: rgba(168,85,247,0.13);
  color: #a855f7;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 1.3em 0;
}
.checkbox-input {
  accent-color: #60a5fa;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.5em;
}
.checkbox-label {
  font-size: 1em;
  color: #cbd5e1;
}

/* Center the send message button */
.form-button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.3em;
}

.submit-button {
  display: inline-block;
  /* margin-top: 1.3em; moved to .form-button-row */
  padding: 1em 3em;
  font-size: 1.18em;
  font-weight: 700;
  border-radius: 2em;
  background: linear-gradient(90deg,#60a5fa 45%,#a855f7 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(59,130,246,0.13);
  cursor: pointer;
  transition: background 0.19s, transform 0.19s;
  position: relative;
  overflow: hidden;
}
.submit-button:disabled {
  background: #232339;
  color: #999;
  cursor: not-allowed;
}
.submit-button:hover,
.submit-button:focus {
  background: linear-gradient(90deg,#a855f7 45%,#60a5fa 100%);
  transform: scale(1.04);
}
.progress-bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg,#60a5fa,#a855f7);
  transition: width 0.2s;
  z-index: 2;
}

/* Status messages */
.status-message {
  margin-bottom: 1.4em;
  padding: 1em 1.2em;
  border-radius: 1em;
  font-size: 1.08em;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59,130,246,0.09);
}
.status-success {
  background: rgba(60,180,90,0.10);
  color: #47cf73;
  border: 1px solid #47cf73;
}
.status-error {
  background: rgba(220,38,38,0.09);
  color: #ef4444;
  border: 1px solid #ef4444;
}

/* Service Areas Section */
.service-areas-section {
  margin: 0 auto;
  text-align: center;
  padding: 2.5em 1em 3em;
  max-width: 900px;
}
.service-areas-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 0.5em;
  background: linear-gradient(135deg,#60a5fa,#a855f7);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.service-areas-subtitle {
  color: #cbd5e1;
  font-size: 1.08em;
  margin-bottom: 2em;
}
.service-areas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
}
.service-area-pill {
  background: linear-gradient(90deg,#60a5fa 45%,#a855f7 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.6em 1.4em;
  border-radius: 2em;
  font-size: 1.07em;
  box-shadow: 0 2px 12px rgba(30,30,40,0.40);
  margin-bottom: 0.5em;
  transition: transform 0.17s, background 0.17s;
  opacity: 1;
}
.service-area-pill:hover {
  background: linear-gradient(90deg,#a855f7 45%,#60a5fa 100%);
  transform: scale(1.07);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24,26,35,0.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: rgba(0,0,0,0.98);
  border-radius: 20px;
  padding: 2.5em 2em 2em;
  max-width: 430px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 44px #232339;
}
.modal-close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2em;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.13s;
}
.modal-close:hover { color: #a855f7; }
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #60a5fa #232339;
}
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #60a5fa;
  border-radius: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #232339;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24,26,35,0.85);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-content {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  align-items: center;
}
.loading-spinner {
  width: 60px; height: 60px;
  border: 6px solid #a855f7;
  border-top: 6px solid #60a5fa;
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg);}
}

/* Utility */
@media (max-width:768px){
  .contact-icons-grid{ gap:2.5rem; flex-wrap:wrap }
  .contact-icon-circle{ width:70px; height:70px }
  .form-container{ padding:2rem }
  .hero-title { font-size: 2.2rem; }
  .form-title, .service-areas-title { font-size: 1.4em; }
}
@media (max-width: 600px) {
  .form-grid {
    flex-direction: column;
    gap: 0.5em;
  }
  .form-group {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 0.5em;
  }
}