/* --- Formulário Premium: Layout, Grid e Responsividade --- */
.contact-unified-premium {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.07);
  padding: 48px 40px;
}

.contact-unified-premium .contact-info-card {
  background: #f8fafd;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.04);
  padding: 32px 24px 24px 24px;
  min-width: 260px;
  max-width: 100%;
}

.contact-unified-premium .contact-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-unified-premium .contact-item {
  background: #334155;
  color: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 1.04rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.07);
  transition: background 0.2s;
}

.contact-unified-premium .contact-item a {
  color: #fff;
  text-decoration: none;
}

.contact-unified-premium .contact-item:hover {
  background: #2563eb;
}

.contact-unified-premium .contact-info-desc {
  color: #475569;
  font-size: 0.98rem;
  margin-bottom: 0;
}

.contact-unified-premium .contact-info-card h3 {
  font-size: 1.13rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.contact-unified-premium .contact-form {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.04);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 280px;
}

.contact-unified-premium .contact-form input,
.contact-unified-premium .contact-form textarea,
.contact-unified-premium .contact-form select {
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: 1rem;
  padding: 30px;
  margin-bottom: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(30, 64, 175, 0.04);
}

.contact-unified-premium .contact-form input:focus,
.contact-unified-premium .contact-form textarea:focus,
.contact-unified-premium .contact-form select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.09);
}

.contact-unified-premium .contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-unified-premium .contact-form button {
  margin-top: 8px;
  padding: 16px 0;
  font-size: 1.08rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.09);
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.contact-unified-premium .contact-form button:hover {
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.13);
}

.contact-unified-premium .contact-form .form-privacy {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
  text-align: center;
}

.contact-unified-premium .contact-form .form-privacy {
  margin-top: 2px;
  margin-bottom: 2px;
  font-weight: 500;
}

.contact-form .form-privacy {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
  text-align: center;
}

.contact-form .form-privacy {
  margin-top: 2px;
  margin-bottom: 2px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .contact-unified-premium {
    grid-template-columns: 1fr;
    padding: 28px 8px;
    gap: 32px;
  }

  .contact-unified-premium .contact-info-card,
  .contact-unified-premium .contact-form {
    min-width: 0;
    max-width: 100%;
    padding: 24px 8px 18px 8px;
  }
}

/* ========================= */
/* CUSTOM SELECT (CORRIGIDO) */
/* ========================= */

.custom-select-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

/* Select nativo escondido (fallback seguro) */
.custom-select-wrapper select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Botão visual */
.custom-select {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 1rem;
  color: #222;
  cursor: pointer;
  min-height: 48px;
  width: 100%;
  position: relative;
  box-shadow: 0 1px 4px rgba(30, 64, 175, 0.04);
  transition: all 0.2s;
}

.custom-select:focus,
.custom-select.open {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.09);
}

.custom-select .selected {
  flex: 1;
  font-size: 1rem;
  color: #222;
}

.custom-select .placeholder {
  color: #888;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  text-indent: 0;
}

.contact-form #phone::placeholder {
  text-indent: 13px;
}

.custom-select .placeholder {
  display: block;
  padding-left: 7px;
}

.custom-select .arrow {
  margin-left: auto;
  font-size: 1.1em;
  color: #888;
  pointer-events: none;
}

/* Dropdown */
.custom-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  z-index: 999;
  max-height: 260px;
  overflow-y: auto;
  animation: fadeIn 0.18s ease;
}

/* 🔥 CONTROLE ÚNICO (sem conflito com JS) */
.custom-select.open + .custom-options {
  display: block;
}

/* Opções */
.custom-options .option {
  padding: 15px 18px;
  cursor: pointer;
  color: #222;
  background: #fff;
  transition: background 0.15s;
  font-size: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.custom-options .option:last-child {
  border-bottom: none;
}

.custom-options .option:hover {
  background: #f3f4f6;
}

.custom-options .option.selected {
  background: #e0e7ff;
  color: #3730a3;
}

/* Responsivo */
@media (max-width: 600px) {
  .custom-select,
  .custom-options .option {
    font-size: 0.98rem;
    padding: 12px;
  }
}

@media (max-width: 400px) {
  .custom-select,
  .custom-options .option {
    font-size: 0.93rem;
    padding: 10px 8px;
  }
}

/* Campo "Outro" */
#otherServiceContainer {
  margin-top: 10px;
}

#otherServiceInput.form-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #222;
  padding: 10px;
  font-size: 1rem;
  margin-top: 4px;
  outline: none;
  transition: border-color 0.2s;
}

#otherServiceInput.form-input:focus {
  border-color: #6366f1;
}

/* Animação */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove aparência nativa */
.form-select-multi {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* multi select com x */
/* TAGS (multi select) */
.custom-select .selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: #e0e7ff;
  color: #3730a3;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  gap: 6px;
}

body.dark-mode .contact-unified-premium,
body.dark-mode .contact-unified-premium .contact-form,
body.dark-mode .contact-unified-premium .contact-info-card {
  background: #050505 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode .contact-unified-premium .contact-form input,
body.dark-mode .contact-unified-premium .contact-form textarea,
body.dark-mode .contact-unified-premium .contact-form select,
body.dark-mode .custom-select {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

body.dark-mode .contact-unified-premium .contact-form select option {
  background: #000000 !important;
  color: #ffffff !important;
}

body.dark-mode .custom-select .selected,
body.dark-mode .custom-select .placeholder,
body.dark-mode .custom-select .arrow {
  color: #ffffff !important;
}

body.dark-mode .custom-options,
body.dark-mode .custom-options .option,
body.dark-mode .custom-options .option.selected,
body.dark-mode .custom-options .option:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode #otherServiceInput.form-input {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

body.dark-mode .contact-unified-premium .contact-form .form-privacy {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.dark-mode .contact-form .form-privacy {
  color: rgba(255, 255, 255, 0.92) !important;
}

.remove-tag {
  cursor: pointer;
  font-weight: bold;
  color: #3730a3;
}

.remove-tag:hover {
  color: #ef4444;
}