/**
 * Contact Form Styles
 * Professional and modern form design
 */

.contact-form-wrapper {
  max-width: 800px;
  margin: 60px auto 0;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.1);
  transition: all 0.3s ease;
}

.contact-form-wrapper:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 102, 204, 0.2);
}

.form-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 10px;
}

.form-header p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
}

.form-group-small {
  flex: 0 0 150px;
}

.form-group-large {
  flex: 1;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
}

.required {
  color: #dc3545;
  font-weight: bold;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-input:hover,
.form-select:hover {
  border-color: #0066cc;
}

.form-input::placeholder {
  color: #999;
}

.form-input.error,
.form-select.error {
  border-color: #dc3545;
}

.form-input.error:focus,
.form-select.error:focus {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
  animation: slideDown 0.3s ease;
}

.form-error.active {
  display: block;
}

/* File Upload Styles */
.file-upload-wrapper {
  position: relative;
}

.form-input-file {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #0066cc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #0066cc;
  font-weight: 500;
}

.file-upload-label:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-color: #0052a3;
  transform: translateY(-2px);
}

.file-upload-label i {
  font-size: 1.5rem;
}

.file-upload-label.has-file {
  background: linear-gradient(135deg, #d1e7ff 0%, #a3d0ff 100%);
  border-color: #0066cc;
  border-style: solid;
}

/* Radio Button Styles */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
  user-select: none;
}

.radio-label:hover {
  border-color: #0066cc;
  background: #f8f9fa;
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0066cc;
}

.radio-label input[type="radio"]:checked + .radio-text {
  color: #0066cc;
  font-weight: 600;
}

.radio-text {
  flex: 1;
  font-size: 1rem;
  color: #333;
  transition: all 0.2s ease;
}

/* Textarea Styles */
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
  outline: none;
  resize: vertical;
  min-height: 120px;
}

.form-textarea:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-textarea:hover:not(:focus) {
  border-color: #999;
}

.form-textarea::placeholder {
  color: #999;
}

.form-textarea.error {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.form-textarea.error:focus {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* Checkbox Styles */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #0066cc;
}

.checkbox-text {
  flex: 1;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.checkbox-text a {
  color: #0066cc;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.checkbox-text a:hover {
  color: #0052a3;
}

/* reCAPTCHA Container */
.g-recaptcha {
  display: inline-block;
  transform: scale(1);
  transform-origin: 0 0;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Form Messages */
.form-message {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  animation: slideDown 0.3s ease;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 30px 20px;
    margin: 40px 20px 0;
  }

  .form-header h3 {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group-small {
    flex: 1;
  }

  .g-recaptcha {
    transform: scale(0.9);
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 20px 15px;
  }

  .form-header h3 {
    font-size: 1.3rem;
  }

  .form-input,
  .form-select {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .btn-submit {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .g-recaptcha {
    transform: scale(0.85);
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .contact-form-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-color: rgba(0, 102, 204, 0.3);
  }

  .form-header h3 {
    color: #4d9fff;
  }

  .form-header p,
  .form-label,
  .checkbox-text {
    color: #e0e0e0;
  }

  .form-input,
  .form-select {
    background-color: #333;
    color: #fff;
    border-color: #555;
  }

  .form-input::placeholder {
    color: #999;
  }

  .file-upload-label {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: #4d9fff;
  }

  .file-upload-label:hover {
    background: linear-gradient(135deg, #444 0%, #555 100%);
  }
}
