/* SAN SQUARE INTERIORS LLC - Contact Form Styles */

/* Form Messages */
#message {
  margin-bottom: 20px;
}

.alert {
  padding: 15px 20px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-left: 4px solid #28a745;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-left: 4px solid #dc3545;
}

.alert ul {
  margin: 0;
  padding-left: 20px;
}

.alert li {
  margin-bottom: 5px;
}

.alert li:last-child {
  margin-bottom: 0;
}

/* Field Errors */
.field-error {
  display: block;
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}

input.error,
textarea.error,
select.error {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
}

input.error:focus,
textarea.error:focus,
select.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

/* Loading State */
#submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#submit:disabled span::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  margin-left: 8px;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success Animation */
.alert-success {
  animation: slideIn 0.3s ease-out;
}

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

/* Form Input Enhancements */
.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="text"],
.custom-form textarea,
.custom-form select {
  transition: all 0.3s ease;
}

.custom-form input:focus,
.custom-form textarea:focus,
.custom-form select:focus {
  border-color: #b8912f;
  box-shadow: 0 0 0 3px rgba(184, 145, 47, 0.15);
}

/* Honeypot (hidden spam trap) */
.website-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .alert {
    padding: 12px 15px;
    font-size: 13px;
  }

  .field-error {
    font-size: 11px;
  }
}
