/*
 * MITS | Coming Soon Plug-In
 * Version: 1.4.0
 * https://montanaitservices.com/plugins/
 */

:root {
  --mits-primary: #2BA89F;
  --mits-bg: #1A3A4A;
}

/* Reset: allow page to scroll naturally */
html {
  margin: 0;
  padding: 0;
  /* No height/min-height here — let the document grow with content */
}

body {
  margin: 0;
  padding: 0;
  /* No height/min-height here either — critical for scroll to work */
}

/*
 * Wrapper: block layout, NOT flex-centered.
 * Using padding instead of flex justify-content:center so the card
 * is never pushed above the top of the scroll container.
 * On short pages (no form) the card will sit near the top with
 * generous padding. This is correct browser behaviour.
 */
.mits-cs-wrapper {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 100vh;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: center;
  /* Vertical padding gives breathing room top and bottom */
  padding: 4rem 2rem;
}

.mits-cs-card {
  max-width: 640px;
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  /* Center the card horizontally within the block wrapper */
  margin: 0 auto;
}

.mits-cs-logo {
  max-width: 220px;
  margin: 0 auto 1.75rem;
  display: block;
}

.mits-cs-headline {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mits-cs-message {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ---------- Form Section ---------- */
.mits-cs-form {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: left;
}

.mits-cs-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.mits-cs-form input[type="text"],
.mits-cs-form input[type="email"],
.mits-cs-form input[type="tel"],
.mits-cs-form input[type="url"],
.mits-cs-form input[type="number"],
.mits-cs-form input[type="date"],
.mits-cs-form textarea,
.mits-cs-form select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.mits-cs-form input:focus,
.mits-cs-form textarea:focus,
.mits-cs-form select:focus {
  outline: none;
  border-color: var(--mits-primary);
  background: rgba(255, 255, 255, 0.18);
}

.mits-cs-form input::placeholder,
.mits-cs-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.mits-cs-form input[type="submit"],
.mits-cs-form button[type="submit"] {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 6px;
  background: var(--mits-primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: auto;
}

.mits-cs-form input[type="submit"]:hover,
.mits-cs-form button[type="submit"]:hover {
  opacity: 0.88;
}

/* Validation messages */
.mits-cs-form .wpcf7-not-valid-tip,
.mits-cs-form .wpcf7-validation-errors,
.mits-cs-form .wpforms-error {
  color: #ff6b6b;
  font-size: 0.85rem;
}

.mits-cs-form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
/* ---------- End Form Section ---------- */

.mits-cs-countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.mits-cs-countdown-unit {
  min-width: 70px;
}

.mits-cs-countdown-value {
  font-size: 1.7rem;
  font-weight: 600;
  display: block;
}

.mits-cs-countdown-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.mits-cs-footer {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .mits-cs-wrapper {
    padding: 2rem 1rem;
  }

  .mits-cs-card {
    padding: 1.75rem 1.25rem;
  }

  .mits-cs-headline {
    font-size: 1.6rem;
  }

  .mits-cs-countdown {
    gap: 0.75rem;
  }

  .mits-cs-form {
    padding: 1rem;
  }
}
