/*-----------------------------------
  Reset & Base Styles
-----------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  /* Gradient sampled from provided image: darker blue → lighter blue */
  background: linear-gradient(90deg, #113e7c 0%, #1d7ad8 50%, #70d3f5 100%);
  color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

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

/*-----------------------------------
  Top Bar
-----------------------------------*/
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.5);
}

.logo-center {
  text-align: center;
}

.contact {
  font-size: 0.9rem;
  color: #e0e0e0;
}

/*-----------------------------------
  Hero Section
-----------------------------------*/
.hero {
  position: relative;
  padding: 4rem 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* Text Column within Hero */
.hero-text {
  max-width: 48%;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-text p.subtitle {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #f0f0f0;
}

/*===============================
  countdown-wrapper: shrink-to-fit
===============================*/
.countdown-wrapper {
  display: inline-block;
  text-align: center;
}

/* Countdown Box */
.countdown-box {
  border: 2px dashed #fff;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  margin-bottom: 1rem;
  text-align: center;
}

.countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.countdown div {
  text-align: center;
}

/* Enlarged countdown numbers (3rem) */
.countdown div span {
  display: block;
  font-size: 3rem; /* matches heading size */
  font-weight: 700;
  color: #ff6a00;
}

.countdown div label {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-top: 0.25rem;
  color: #fff;
}

/* Arrow Placeholder */
.arrow {
  width: 2rem;
  height: 2rem;
  margin: 0.5rem auto;
}

/* CTA Button */
.btn {
  display: inline-block;
  background: #ff6a00;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.75rem 2.5rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

.btn small {
  font-size: 1rem;
}

/* Force button to fill the wrapper width */
.btn-fullwidth {
  width: 100%;
  max-width: none;
  display: block;
  box-sizing: border-box;
}

/* Spacing under countdown-box for the button */
.countdown-wrapper .btn {
  margin-top: 0.75rem;
}

/* Hero Image Column */
.hero-image {
  max-width: 48%;
  text-align: right;
}

.hero-image img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/*-----------------------------------
  Modal Styles (RESPONSIVE)
-----------------------------------*/
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem; /* so modal-content never touches screen edges */
}

/* The white box that holds the form */
.modal-content {
  background: #fff;
  color: #333;
  border-radius: 8px;
  width: 100%;
  max-width: 550px;       /* adjust as needed */
  max-height: 90vh;       /* never exceed 90% of viewport height */
  overflow-y: auto;       /* scroll if form is taller than 90vh */
  position: relative;
  padding: 1rem 1.5rem;    /* inner padding around the form */
  box-sizing: border-box;
}

/* Close-Button (×) */
.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: #333;
}

/* Ensure the form container (#c55) fills the modal-content width */
#c55 {
  width: 100%;
  min-height: 309px;  /* at least the form’s default height */
}

/*-----------------------------------
  Responsive Breakpoints
-----------------------------------*/
@media (max-width: 768px) {
  .topbar {
    flex-wrap: wrap;
    padding: 1rem;
  }
  .logo-center {
    order: 1;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .contact {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text,
  .hero-image {
    max-width: 100%;
  }
  .hero-image {
    margin-top: 2rem;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p.subtitle {
    font-size: 1rem;
  }
  .countdown-wrapper {
    width: 100%;
  }
  .btn-fullwidth {
    max-width: 100%;
  }
  /* Slightly reduce countdown number size on smaller screens */
  .countdown div span {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.75rem;
  }
  .hero-text p.subtitle {
    font-size: 0.9rem;
  }
  .btn {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
  }
  /* Further reduce countdown number size on very small screens */
  .countdown div span {
    font-size: 2rem;
  }
  .countdown div label {
    font-size: 0.75rem;
  }
}
