/* ---------- Form Section ---------- */
.form-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #0a4b87 0%, #0f64b6 50%, #1a7bce 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 700px;
}

.form-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
}

.form-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ffffff 0%, rgba(255,255,255,0) 70%);
  top: -200px;
  right: -100px;
  animation: floatAnimation 15s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--secondary) 0%, rgba(255,79,94,0) 70%);
  bottom: -100px;
  left: -100px;
  animation: floatAnimation 20s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent) 0%, rgba(255,200,87,0) 70%);
  bottom: 200px;
  right: 10%;
  animation: floatAnimation 25s ease-in-out infinite alternate;
}

@keyframes floatAnimation {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -10px) rotate(2deg); }
  50% { transform: translate(0, 15px) rotate(0deg); }
  75% { transform: translate(-10px, 10px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.form-wrapper {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.form-header h2:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 70px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.form-intro {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 500px;
  margin: 1.5rem auto 0;
  font-weight: 300;
}

.form-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-row {
  position: relative;
  margin-bottom: 5px;
}

.input-field {
  position: relative;
}

.input-field input {
  width: 100%;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  padding: 24px 16px 8px;
  font-size: 16px;
  color: white;
  transition: all 0.3s ease;
}

.input-field input:focus {
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.25);
  outline: none;
}

.input-field label {
  position: absolute;
  left: 16px;
  top: 18px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
  top: 8px;
  left: 16px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.input-field input:focus ~ .input-border {
  width: 100%;
}

.input-hint {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 16px;
}

.select-field {
  position: relative;
}

.select-field select {
  width: 100%;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 24px 40px 8px 16px;
  font-size: 16px;
  color: white;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-field select:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.25);
  outline: none;
}

.select-field select option {
  background-color: var(--primary);
  color: white;
  padding: 10px;
  font-size: 16px;
}

.select-field select:invalid {
  color: rgba(255, 255, 255, 0.5);
}

.select-field select:focus ~ .input-border {
  width: 100%;
}

.select-field label {
  position: absolute;
  left: 16px;
  top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: all 0.3s ease;
}

.select-field select:focus ~ label,
.select-field select:not(:invalid) ~ label {
  color: var(--accent);
  font-weight: 500;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  clip-path: polygon(50% 75%, 0% 25%, 100% 25%);
  pointer-events: none;
  transition: all 0.3s ease;
}

.select-field select:focus ~ .select-arrow {
  border-top-color: var(--accent);
}

.checkbox-row {
  padding-left: 10px;
  margin-bottom: 5px;
}

.checkbox-row:last-child {
  margin-bottom: 0;
}

.custom-checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 4px 0;
  cursor: pointer;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
  height: 20px;
  width: 20px;
  margin: 0;
  top: 2px;
  left: 0;
}

.custom-checkbox .checkmark {
  position: relative;
  top: 2px;
  height: 22px;
  width: 22px;
  margin-right: 12px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.05);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 200, 87, 0.3);
  transform: scale(1.05);
}

.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  animation: checkmark-appear 0.2s ease-in-out;
}

@keyframes checkmark-appear {
  0% {
    opacity: 0;
    transform: rotate(45deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-text {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  display: inline-block;
  margin-top: 1px;
}

.checkbox-text a {
  color: var(--white);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: color 0.2s ease;
}

.checkbox-text a:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.5);
  transform-origin: bottom right;
  transition: all 0.3s ease;
}

.checkbox-text a:hover {
  color: var(--accent);
}

.checkbox-text a:hover:after {
  background-color: var(--accent);
  height: 2px;
}

.form-submit {
  margin-top: 10px;
}

.submit-button {
  position: relative;
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.submit-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.submit-button:hover:before {
  left: 100%;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.submit-button:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.button-text {
  margin-right: 10px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.button-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.submit-button:hover .button-text {
  transform: translateX(-10px);
}

.submit-button:hover .button-icon {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .form-container {
    padding: 30px 20px;
  }
  
  .form-header h2 {
    font-size: 2rem;
  }
  
  .form-intro {
    font-size: 1rem;
  }
  
  .input-field input,
  .select-field select,
  .submit-button {
    height: 50px;
  }
}
