/* contact-style.css - Stile dedicato per la pagina Contatti & Preventivi */

.contact-main {
  padding: 120px 0 80px;
  min-height: calc(100vh - 120px);
}

.contact-header-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.contact-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin: 12px 0 8px;
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: flex-start;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.contact-form-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.contact-form-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.contact-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

[data-theme="light"] .contact-input {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.contact-input:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(30, 41, 59, 0.6);
}

[data-theme="light"] .contact-input:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.contact-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(30, 41, 59, 0.75);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .contact-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.contact-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
  white-space: normal;
  text-overflow: clip;
  word-wrap: break-word;
  line-height: 1.4;
}

.contact-select option {
  background: #0f172a;
  color: #ffffff;
  padding: 12px;
  font-size: 0.95rem;
  white-space: normal;
}

[data-theme="light"] .contact-select option {
  background: #ffffff;
  color: #0f172a;
}

.contact-textarea {
  min-height: 220px;
  height: 220px;
  resize: none; /* Disabilita il drag & drop/ridimensionamento */
  line-height: 1.6;
}

.contact-feedback-box {
  text-align: center;
  padding: 40px 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
}

.contact-feedback-box.hidden {
  display: none !important;
}

.feedback-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-feedback-box h4 {
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.contact-feedback-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Colonna Destra: Info & Why Us */
.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-contact-card,
.why-us-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.info-contact-card h4,
.why-us-card h4 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.info-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.info-contact-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .info-icon {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.info-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.info-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.info-val:hover {
  text-decoration: underline;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.why-list li strong {
  color: var(--text-white);
}

.why-list li i {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-fields-grid {
    grid-template-columns: 1fr;
  }
  .form-group.span-2 {
    grid-column: span 1;
  }
}
