/* Base Styles */
:root {
  --primary-color: #1a365d; /* Dark blue */
  --secondary-color: #2b6cb0; /* Lighter blue */
  --bg-color: #f8fafc;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --border-color: rgba(26, 54, 93, 0.12);
  --white: #ffffff;
  --shadow-card: 0 8px 15px rgba(0, 0, 0, 0.025);
  --accent-color: #3182ce;
}

body {
  background: #E6EFF5;
  font-family: "Source Sans Pro", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

main {
  min-height: 100vh;
  padding: 5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-color);
}

/* Hero Section */
.hero-section {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(43, 76, 126, 0.8), rgba(43, 76, 126, 0.8)), url('https://www.mnthen.com/images/bg/contact_bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 2rem;
  margin-top: 70px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Form Container */
.form-container {
  background: var(--white);
  padding: 3.5rem;
  border-radius: 2rem;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.contact-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 2rem auto 0;
  border-radius: 2px;
}

.contact-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.2;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.contact-header p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.form-grid .form-group:last-child {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  background: var(--white);
  font-size: 1.1rem;
  color: var(--text-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.05);
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

/* Verification Box */
.verification-box {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.verification-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.verification-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.verification-icon {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.verification-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.math-challenge label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.math-challenge input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  background: var(--white);
  font-size: 1.1rem;
  color: var(--text-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.math-challenge input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.05);
}

.checkbox-confirm {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.checkbox-text {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  border: 2px solid var(--border-color);
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* Buttons Only: Hover, Transitions, and Transforms */
.btn-submit {
  background: var(--primary-color);
  color: var(--white);
  padding: 1.25rem 2.5rem;
  border-radius: 0.75rem;
  border: none;
  font-size: 1.125rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.btn-submit:hover {
  background: var(--secondary-color);
}

/* Help Center Section */
.help-center-section {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-card);
  max-width: 800px;
  width: 100%;
}

.help-center-section h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.help-center-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.help-center-link {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
}

.help-center-link:hover {
  background: var(--secondary-color);
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-container {
  background-color: var(--white);
  border-radius: 1.25rem;
  max-width: 550px;
  width: 90%;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.modal-content {
  padding: 2rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0;
  color: var(--text-secondary);
}

.modal-body {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  text-align: right;
}

.modal-button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.modal-button:hover {
  background: var(--secondary-color);
}

/* Error Message */
.error-message {
  background-color: #fef2f2;
  border: 1px solid #ef4444;
  color: #dc2626;
  padding: 1.25rem;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.error-close {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-container {
    padding: 2.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-header h2 {
    font-size: 2.25rem;
  }

  .contact-header {
    margin-bottom: 3rem;
  }

  .help-center-section {
    margin-top: 2rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 2rem;
  }

  .contact-header h2 {
    font-size: 2rem;
  }

  .contact-header p {
    font-size: 1.125rem;
  }

  .form-group label {
    font-size: 1rem;
  }

  .form-control {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .btn-submit {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}
