/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-orange: #E65F05;
  --primary-orange-hover: #C94F02;
  --bg-gradient-start: #FCFAF6;
  --bg-gradient-mid: #FCEBD2;
  --bg-gradient-end: #F4A215;
  --card-bg: rgba(246, 237, 226, 0.85);
  --card-border: rgba(218, 194, 169, 0.55);
  --text-dark: #121212;
  --text-muted: #4F4F4F;
  --font-brand: 'Geologica';
  --font-body: 'Geist';
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 30px 60px rgba(230, 95, 5, 0.15);
  --border-radius-card: 22px;
  --border-radius-inner: 16px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Loading Overlay styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: transparent;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* FOUT prevention: hide unstyled text components until custom fonts are fully loaded */
.main-header,
.content-wrapper,
.cta-container {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.fonts-loading .main-header,
.fonts-loading .content-wrapper,
.fonts-loading .cta-container {
  opacity: 0 !important;
  pointer-events: none;
}

.loader-container {
  position: relative;
  width: 60px;
  height: 60px;
}

@keyframes loader_5191 {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

.square {
  background: var(--primary-orange);
  width: 10px;
  height: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -5px;
  margin-left: -5px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(230, 95, 5, 0.5);
}

#sq1 {
  margin-top: -25px;
  margin-left: -25px;
  animation: loader_5191 675ms ease-in-out 0s infinite alternate;
}

#sq2 {
  margin-top: -25px;
  animation: loader_5191 675ms ease-in-out 75ms infinite alternate;
}

#sq3 {
  margin-top: -25px;
  margin-left: 15px;
  animation: loader_5191 675ms ease-in-out 150ms infinite alternate;
}

#sq4 {
  margin-left: -25px;
  animation: loader_5191 675ms ease-in-out 225ms infinite alternate;
}

#sq5 {
  animation: loader_5191 675ms ease-in-out 300ms infinite alternate;
}

#sq6 {
  margin-left: 15px;
  animation: loader_5191 675ms ease-in-out 375ms infinite alternate;
}

#sq7 {
  margin-top: 15px;
  margin-left: -25px;
  animation: loader_5191 675ms ease-in-out 450ms infinite alternate;
}

#sq8 {
  margin-top: 15px;
  animation: loader_5191 675ms ease-in-out 525ms infinite alternate;
}

#sq9 {
  margin-top: 15px;
  margin-left: 15px;
  animation: loader_5191 675ms ease-in-out 600ms infinite alternate;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 40%, #ECC37C 75%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: opacity 0.4s ease;
}

/* Background Premium Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  animation: float 20s infinite ease-in-out alternate;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: #FFF;
  top: -100px;
  left: 20%;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: #FF8C00;
  bottom: -150px;
  right: -50px;
  animation-duration: 25s;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(40px) scale(1.1);
  }
}

/* Header Styles */
.main-header {
  width: 100%;
  padding: 40px 60px;
  z-index: 100;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  transform: rotate(15deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  opacity: 0.85;
}

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

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 70px;
  padding: 20px 60px 140px 60px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.services-section {
  width: 100%;
}

/* Hero Section */
.hero-section {
  width: 100%;
  text-align: center;
  padding: 30px 20px 0 20px;
}

.hero-container {
  max-width: 950px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--text-dark);
}

.highlight-word {
  background: linear-gradient(135deg, #E65F05 0%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0 2px;
}

/* As Seen On / Featured Project Section */
.as-seen-on-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.as-seen-header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.as-seen-badge {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-orange);
  background: rgba(230, 95, 5, 0.1);
  border: 1px solid rgba(230, 95, 5, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
}

.as-seen-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

/* Expandable Card (From Uiverse.io by Praashoo7 concept, styled for Sunset Labs) */
.expand-card-container {
  position: relative;
  width: 270px;
  height: 150px;
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.expand-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  position: relative;
}

.card-main {
  position: relative;
  width: 270px;
  height: 145px;
  border-radius: 20px;
  background: rgba(254, 253, 251, 0.95);
  border: 1px solid rgba(218, 194, 169, 0.7);
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px 18px;
  box-sizing: border-box;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-main-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--primary-orange);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.card-icon-box svg {
  width: 22px;
  height: 22px;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-title-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin: 0;
  transition: color 0.3s ease;
}

.card-subtitle-text {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-short-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

/* Drawer Card behind (Hidden until hover) */
.card-drawer {
  position: absolute;
  top: 0;
  left: 5px;
  width: 260px;
  height: 140px;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(230, 95, 5, 0.3);
  z-index: 1;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.drawer-body {
  padding: 155px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.35s ease;
}

.drawer-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.branch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.branch-pills .pill {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary-orange);
  background: rgba(230, 95, 5, 0.08);
  border: 1px solid rgba(230, 95, 5, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Bottom Action Bar */
.card-bottom-bar {
  background: var(--primary-orange);
  color: #FFF;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  transition: all 0.3s ease;
}

.card-bottom-bar svg {
  transition: transform 0.3s ease;
}

/* --- HOVER MECHANICS (Praashoo7 expandable effect) --- */
.expand-card-link:hover .card-main {
  background-color: #FFF4EA;
  border-color: var(--primary-orange);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(230, 95, 5, 0.15);
  cursor: pointer;
}

.expand-card-link:hover .card-icon-box {
  background: var(--primary-orange-hover);
  transform: rotate(5deg) scale(1.05);
}

.expand-card-link:hover .card-title-text {
  color: var(--primary-orange);
}

.expand-card-link:hover .card-drawer {
  height: 275px;
  border-color: var(--primary-orange);
  box-shadow: 0 20px 40px rgba(230, 95, 5, 0.2);
}

.expand-card-link:hover .drawer-body {
  opacity: 1;
  transform: translateY(0);
}

.expand-card-link:hover .card-bottom-bar {
  background: var(--primary-orange-hover);
}

.expand-card-link:hover .card-bottom-bar svg {
  transform: translate(2px, -2px);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
}

/* Service Card */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(230, 95, 5, 0.3);
}

/* Card Icon Box */
.card-icon-wrapper {
  background: var(--primary-orange);
  width: 100%;
  height: 155px;
  border-radius: var(--border-radius-inner);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  margin-bottom: 24px;
  box-shadow: 0 10px 20px rgba(230, 95, 5, 0.15);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card-icon-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

.service-card:hover .card-icon-wrapper::after {
  left: 125%;
}

.service-card:hover .card-icon-wrapper {
  background: var(--primary-orange-hover);
  transform: scale(1.02);
}

.card-svg {
  width: 58px;
  height: 58px;
  stroke-width: 1.75;
  transition: var(--transition-smooth);
}

.service-card:hover .card-svg {
  transform: scale(1.1) rotate(3deg);
}

/* Card Typography */
.card-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.card-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Sticky CTA Container & Button */
.cta-container {
  position: fixed;
  bottom: 50px;
  right: 60px;
  z-index: 90;
}

.cta-button {
  background: var(--primary-orange);
  color: #FFF;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 16px 36px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 30px rgba(230, 95, 5, 0.35);
  transition: var(--transition-smooth);
}

.cta-button:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(230, 95, 5, 0.45);
}

.cta-button:active {
  transform: translateY(-1px);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  transition: var(--transition-smooth);
}

.cta-button:hover .arrow-icon {
  transform: translateX(4px);
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: rgba(254, 253, 251, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-card);
  padding: 40px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.modal-header {
  margin-bottom: 28px;
}

.modal-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 1.5px solid rgba(218, 194, 169, 0.8);
  border-radius: 10px;
  outline: none;
  background: #FFF;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
  line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 4px rgba(230, 95, 5, 0.15);
}

.form-group input.invalid {
  border-color: #D32F2F;
}

.form-group input.invalid:focus {
  border-color: #D32F2F;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.15);
}

.form-group input.valid {
  border-color: #2E7D32;
}

.form-group input.valid:focus {
  border-color: #2E7D32;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
}

#input-email {
  padding-right: 44px;
  /* Leave space for the green checkmark */
}

.valid-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  width: 18px;
  height: 18px;
  color: #2E7D32;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.valid-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.valid-icon.active {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.validation-error {
  color: #D32F2F;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0;
  display: block;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.validation-error.active {
  opacity: 1;
  max-height: 20px;
  margin-top: 4px;
}

/* Custom Checkbox Grid & Buttons styling */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 8px 4px 16px 4px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox check mark with SVG path animation */
.check {
  cursor: pointer;
  position: relative;
  width: 18px;
  height: 18px;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);
  flex-shrink: 0;
}

.check:before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(230, 95, 5, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.check svg {
  position: relative;
  z-index: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #c8ccd4;
  stroke-width: 1.5;
  transform: translate3d(0, 0, 0);
  transition: all 0.2s ease;
  display: block;
}

.check svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}

.check svg polyline {
  stroke-dasharray: 22;
  stroke-dashoffset: 66;
}

.check:hover:before {
  opacity: 1;
}

.check:hover svg {
  stroke: var(--primary-orange);
}

.cbx-input:checked+.check svg {
  stroke: var(--primary-orange);
}

.cbx-input:checked+.check svg path {
  stroke-dashoffset: 60;
  transition: all 0.3s linear;
}

.cbx-input:checked+.check svg polyline {
  stroke-dashoffset: 42;
  transition: all 0.2s linear;
  transition-delay: 0.15s;
}

.checkbox-label-text {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* Custom service wrapper is no longer used but kept as a placeholder */

/* Custom Checkbox input container styling */
.custom-input-form {
  --timing: 0.3s;
  --border-height: 2px;
  --input-bg: #fff;
  --border-color: var(--primary-orange);
  --border-radius: 10px;
  --after-border-radius: 4px;
  position: relative;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  padding-inline: 0.8em;
  border-radius: var(--border-radius);
  transition: border-radius 0.5s ease, opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
  background: var(--input-bg, #fff);
  border: 1.5px solid rgba(218, 194, 169, 0.8);

  /* Initial hidden state, only shown when custom checkbox is checked */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  margin-top: -8px;
}

/* Show input container when the custom checkbox is checked */
.custom-service-wrapper:has(.cbx-input:checked) .custom-input-form {
  max-height: 44px;
  opacity: 1;
  pointer-events: all;
  margin-top: 4px;
}

/* Styling of input field, override default form-group input styles */
.form-group input.custom-input-field {
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: transparent;
  width: 100%;
  height: 100%;
  padding: 0 0.5em;
  border: none;
  outline: none;
  color: var(--text-dark);
  box-shadow: none;
  border-radius: 0;
}

.form-group input.custom-input-field:focus {
  border-color: transparent;
  box-shadow: none;
}

/* Styling of animated border */
.custom-input-form:before {
  content: "";
  position: absolute;
  background: var(--border-color);
  transform: scaleX(0);
  transform-origin: center;
  width: 100%;
  height: var(--border-height);
  left: 0;
  bottom: -1.5px;
  /* Sit exactly on the bottom border outline */
  border-radius: 1px;
  transition: transform var(--timing) ease;
}

/* Hover/Focus within input container */
.custom-input-form:focus-within {
  border-radius: var(--after-border-radius);
  border-color: var(--primary-orange);
}

/* Trigger animated border on focus-within */
.custom-input-form:focus-within:before {
  transform: scale(1);
}

/* Styling of close/reset button */
.custom-input-reset {
  border: none;
  background: none;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.custom-input-reset:hover {
  color: var(--primary-orange);
}

/* Close button shown when typing */
.custom-input-field:not(:placeholder-shown)~.custom-input-reset {
  opacity: 0.7;
  visibility: visible;
}

.custom-input-field:not(:placeholder-shown)~.custom-input-reset:hover {
  opacity: 1;
}

/* Sizing close icon SVG */
.custom-input-reset svg {
  width: 16px;
  height: 16px;
  display: block;
}

.modal-submit-btn {
  background: var(--primary-orange);
  color: #FFF;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(230, 95, 5, 0.2);
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.modal-submit-btn:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(230, 95, 5, 0.3);
}

/* Success State inside modal */
.modal-success-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  color: #2E7D32;
  margin-bottom: 20px;
  animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUp {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-success-msg h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.modal-success-msg p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive Styles */

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .main-header {
    padding: 30px 40px;
  }

  .content-wrapper {
    padding: 20px 40px 100px 40px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .main-header {
    padding: 24px 20px;
  }

  .header-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .content-wrapper {
    padding: 20px 20px 120px 20px;
  }

  .cta-container {
    bottom: 30px;
    right: 20px;
    left: 20px;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.8rem;
  }

  .main-nav ul {
    gap: 20px;
  }

  .modal-card {
    padding: 30px 20px;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}