/* ========================================
   FORMULÁRIO DE CONTATO - MOBILE-FIRST
   ======================================== */

/* ===== WRAPPER DO FORMULÁRIO - MOBILE ===== */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(74, 144, 226, 0.15);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-orion);
}

/* ===== FORM GROUPS - MOBILE ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
}

.form-label i {
  color: var(--orion-blue);
  margin-right: 0.25rem;
}

/* ===== INPUTS E SELECT - MOBILE ===== */
.form-control,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 16px; /* Evita zoom no iOS */
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(74, 144, 226, 0.2);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--orion-blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
  border-color: var(--orion-purple);
}

.form-control::placeholder {
  color: var(--text-light);
}

/* Textarea específico */
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ===== CHECKBOXES DE SERVIÇOS - MOBILE ===== */
.services-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-left: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius);
  border: 2px dashed rgba(74, 144, 226, 0.2);
}

.form-check {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.5rem 0.4rem 0.75rem;
  margin: 0;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-right: 0.65rem;
  border: 2px solid var(--orion-blue);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-input:checked {
  background-color: var(--orion-blue);
  border-color: var(--orion-blue);
}

.form-check-label {
  font-size: 0.8rem;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== VALIDAÇÃO - MOBILE ===== */
.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  display: none;
  font-size: 0.85rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

.is-invalid ~ .invalid-feedback {
  display: block;
}

/* ===== BOTÕES DO FORMULÁRIO - MOBILE ===== */
.btn {
  width: 100%;
  margin-bottom: 0.75rem;
}

.btn .spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

/* ===== MENSAGENS DE FEEDBACK - MOBILE ===== */
.alert {
  padding: 1rem;
  margin-top: 1rem;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  border: none;
}

.alert-success {
  background: linear-gradient(135deg, #10b981, #047857);
  color: white;
}

.alert-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.d-none {
  display: none !important;
}

/* ===== CLOUDFLARE TURNSTILE - MOBILE ===== */
.cf-turnstile {
  margin: 0 auto;
}

#turnstile-error {
  margin-top: 0.5rem;
  text-align: center;
}

/* =====================================
   TABLET (576px+)
   ===================================== */
@media (min-width: 576px) {
  .contact-form-wrapper {
    padding: 2rem;
  }

  .services-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem;
    margin-left: 0;
  }

  .form-check {
    padding: 0.5rem;
  }

  .form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
  }

  .form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: normal;
  }

  .btn {
    width: auto;
    min-width: 200px;
    margin-bottom: 0;
  }
}

/* =====================================
   TABLET GRANDE (768px+)
   ===================================== */
@media (min-width: 768px) {
  .contact-form-wrapper {
    padding: 2.5rem;
  }

  .form-label {
    font-size: 1rem;
  }

  .form-control,
  .form-select {
    padding: 1rem 1.25rem;
  }

  textarea.form-control {
    min-height: 140px;
  }

  .services-checkboxes {
    padding: 1.5rem;
  }

  .form-check-label {
    font-size: 0.95rem;
  }
}

/* =====================================
   DESKTOP (992px+)
   ===================================== */
@media (min-width: 992px) {
  .contact-form-wrapper {
    padding: 3rem;
  }

  .services-checkboxes {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== FIM DO FORM CSS MOBILE-FIRST ===== */
