/*
 * Stylesheet for the Coach Castro contact and player sign‑up form.
 *
 * The page uses a dark gradient background inspired by the colors of
 * the provided logo (deep blues and purples). The form sits on top
 * of the background with a semi‑transparent panel and soft borders.
 * All interactive elements are styled for accessibility and visual
 * coherence. The design is responsive and works well on mobile.
 */

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

html,
body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(120deg, #0b155d, #11072d 60%, #2a0e4f);
  color: #ffffff;
}

header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.logo {
  max-width: 200px;
  width: 60%;
  height: auto;
}

main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 1rem 3rem;
}

.form-section {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  margin-top: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.form-section h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 1px;
}

.subtitle {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #d3d6e4;
}

.form-group {
  margin-bottom: 1.2rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #e0e3f5;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  outline: none;
  transition: background 0.3s, border-color 0.3s;
  /* leave space for icons */
  padding-left: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b3b6ca;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #7e51c7;
}

select {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23b3b6ca"%3E%3Cpath d="M7 10l5 5 5-5z"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 3rem;
}

.captcha-group {
  display: flex;
  flex-direction: column;
}

.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

/* Input icon wrapper */
.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon i {
  position: absolute;
  left: 0.75rem;
  font-size: 1.1rem;
  color: #9fa4c5;
}

.input-icon select,
.input-icon input,
.input-icon textarea {
  padding-left: 2.5rem;
}

/* Adjust select icon to align with FA icons */
.select-icon select {
  padding-left: 2.5rem;
}

/* Progress bar styles */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1607a0, #590d8d);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.captcha-wrapper span {
  white-space: nowrap;
  font-weight: 600;
  color: #e5e8f4;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 0.8rem;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(90deg, #1607a0, #590d8d);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.message {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #a3a6ba;
}

@media (max-width: 500px) {
  .form-section {
    padding: 1.5rem;
  }
  .form-section h1 {
    font-size: 1.6rem;
  }
  .logo {
    max-width: 160px;
  }
}