/* Form Styles */
:root {
  --input-bg: #f9fafb;
  --input-border: #e5e7eb;
  --input-focus: #3b82f6;
  --error-color: #ef4444;
  --success-color: #10b981;
}

.form-section {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, #ebf5ff, var(--white), #ebf5ff);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
  animation: pulse 8s infinite alternate;
}

.form-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
  animation: float 10s infinite alternate;
}

.form-container {
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--input-border);
  border-radius: 0.5rem;
  background-color: var(--input-bg);
  transition: all 0.3s ease;
  overflow: hidden;
}

.input-wrapper::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transition: width 0.3s ease;
  z-index: 1;
}

.input-wrapper.focused::before {
  width: 100%;
}

.input-wrapper i {
  font-size: 1.2rem;
  color: var(--text-light);
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.input-wrapper.focused i {
  color: var(--primary-color);
}

.input-wrapper input,
.input-wrapper select {
  flex: 1;
  padding: 1rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-color);
  outline: none;
  font-family: inherit;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  outline: none;
}

.input-wrapper:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.select-styled {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem !important;
  cursor: pointer;
}

label {
  font-weight: 500;
  color: var(--gray-800);
  font-size: 0.95rem;
}

.text-muted {
  color: var(--text-light);
  font-weight: normal;
  font-size: 0.85rem;
}

.required {
  color: var(--error-color);
}

.error-message {
  color: var(--error-color);
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.checkbox-wrapper label {
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-wrapper a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.checkbox-wrapper a:hover {
  color: var(--primary-dark);
}

.submit-btn {
  margin-top: 1rem;
  padding: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn::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-btn:hover::before {
  left: 100%;
}

.submit-btn i {
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(5px);
}

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

.modal-content {
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--success-color), #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: scaleIn 0.5s ease;
}

.success-icon i {
  color: var(--white);
  font-size: 2.5rem;
}

.modal-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-content .btn {
  min-width: 200px;
}

/* Animations */
@keyframes scaleIn {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .form-container {
    padding: 2rem;
  }
  
  .form-header h1 {
    font-size: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modal-content {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 1.5rem;
  }
  
  .form-header h1 {
    font-size: 1.8rem;
  }
  
  .input-wrapper i {
    margin: 0 0.75rem;
  }
  
  .input-wrapper input {
    padding: 0.75rem;
  }
  
  .submit-btn {
    padding: 0.75rem;
  }
}