/**
 * Quote Form Custom Styles
 */

/* Form container styling */
.quote-form-container {
  transition: all 0.3s ease;
}

/* Form field focus effects */
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: #2c72c2;
  box-shadow: 0 0 0 3px rgba(44, 114, 194, 0.1);
}

/* Section headings */
.quote-form-section-title {
  position: relative;
  padding-left: 1rem;
}

.quote-form-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.5rem;
  background-color: #55AF47;
  border-radius: 2px;
}

/* Form field animations */
.quote-form .form-field {
  transition: all 0.2s ease;
}

.quote-form .form-field:focus-within label {
  color: #2c72c2;
}

/* Custom checkbox styling */
.quote-form .custom-checkbox {
  display: flex;
  align-items: flex-start;
}

.quote-form .custom-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
  margin-top: 0.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quote-form .custom-checkbox input[type="checkbox"]:checked {
  background-color: #55AF47;
  border-color: #55AF47;
}

.quote-form .custom-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
}

.quote-form .custom-checkbox input[type="checkbox"]:focus {
  outline: none;
  border-color: #2c72c2;
  box-shadow: 0 0 0 3px rgba(44, 114, 194, 0.1);
}

/* Submit button hover effect */
.quote-form .submit-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quote-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quote-form .submit-btn:active {
  transform: translateY(0);
}

/* Form section transitions */
.form-section {
  transition: all 0.3s ease;
}

/* Success message styling */
.success-message {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Required field indicator */
.required-field::after {
  content: ' *';
  color: #ef4444;
}

/* Form field error state */
.field-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  animation: fadeIn 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .quote-form .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}