/* ==============================
   RESET
============================== */

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

body {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* ==============================
   FIXED BACKGROUND IMAGE
============================== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../images/Hero.jpg") center center no-repeat;
  background-size: cover;
  z-index: -2;
}

/* ==============================
   FIXED HEADER
============================== */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 60px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.logo {
  height: 40px;
}

/* ==============================
   HERO LAYOUT
============================== */

.hero {
  min-height: 100vh;
  margin-top: 70px;
  position: relative;
}

/* dark overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10,20,40,0.90) 0%,
    rgba(10,20,40,0.70) 38%,
    rgba(10,20,40,0.25) 70%,
    rgba(10,20,40,0.05) 100%
  );
  z-index: 0;
}

/* CENTERED CANVAS + GAP CONTROL */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 40px 0 40px;
  display: flex;
  align-items: flex-start;
  gap: 90px;
}

/* ==============================
   LEFT SIDE
============================== */

.hero-left {
  flex: 1;
  min-width: 520px;
  color: #ffffff;
  padding-top: 10px;
}

.hero-heading h1 {
  font-family: "Oswald", sans-serif;
  font-size: 62px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.highlight {
  display: inline-block;
  background: #ffc011;
  color: #1e2e63;
  padding: 8px 18px;
  margin: 10px 0;
  font-weight: 700;
  line-height: 1.05;
}

.glass-box {
  margin-top: 36px;
  width: 520px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  padding: 28px 30px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 18px;
}

/* ==============================
   RIGHT FORM
============================== */

.hero-right {
  flex: 0 0 520px;
  display: flex;
  justify-content: flex-end;
}

/* FORM PANEL */
.form-panel {
  width: 520px;
  border: 2px solid #1e2e63;
  border-radius: 2px;
  background: rgba(245,245,245,0.96);
  overflow: hidden;
}

/* HERO IMAGE INSIDE FORM (MATCH PLACEMENT) */
.form-panel::before {
  content: "";
  display: block;
  height: 250px;
  background-image: url("../images/Hero.jpg");
  background-size: cover;
  background-position: center top;
  border-bottom: 2px solid #1e2e63;
}

/* form content */
.form-panel form {
  padding: 30px 36px 34px 36px;
  position: relative;
}

/* watermark */
.form-panel form::before {
  content: "FITNESS";
  position: absolute;
  top: 12px;
  left: 36px;
  font-size: 82px;
  font-weight: 800;
  color: rgba(255,255,255,0.33);
  z-index: 0;
}

.form-panel form * {
  position: relative;
  z-index: 1;
}

/* labels */
.form-panel label {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e2e63;
}

/* inputs */
.form-panel input[type="text"],
.form-panel input[type="email"],
.form-panel input[type="tel"],
.form-panel select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 4px;
  border: 2px solid #1e2e63;
  background: #ffffff;
  font-size: 13px;
  color: #333;
}

.form-panel input::placeholder {
  color: #bdbdbd;
}

.form-panel input:focus,
.form-panel select:focus {
  outline: none;
  border-color: #0d1d4f;
  box-shadow: 0 0 0 2px rgba(30,46,99,0.18);
}

/* dropdown arrow */
.form-panel select#service {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg fill='%231e2e63' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.516 7.548l4.484 4.484 4.484-4.484 1.032 1.032-5.516 5.516-5.516-5.516z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* consent */
.form-panel .consent {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  color: #1e2e63;
  align-items: flex-start;
}

.form-panel .consent input {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  flex-shrink: 0;
}

.form-panel .consent label {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
  color: #1e2e63;
}

/* button */
.form-panel button {
  margin-top: 22px;
  width: 100%;
  height: 52px;
  background: #1e2e63;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 14px;
  cursor: pointer;
}

.form-panel button:hover {
  background: #14224d;
}

/* ==============================
   FOOTER
============================== */

footer {
  background: #000000;
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  position: relative;
  z-index: 2;
}

footer a {
  color: #3b82f6;
  text-decoration: underline;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1200px) {
  .hero-inner {
    max-width: 980px;
    gap: 50px;
  }

  .hero-heading h1 {
    font-size: 64px;
  }

  .glass-box {
    width: 100%;
  }

  .hero-left {
    min-width: 0;
  }

  .hero-right,
  .form-panel {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .hero-inner {
    flex-direction: column;
    padding-top: 40px;
  }

  .hero-right {
    justify-content: flex-start;
  }
}

/* The spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Optional: Dim the button slightly when disabled */
button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}
