/* Contact page specific styles - Professional & Minimal Design */

/* ===== MAIN SECTION ===== */
.contact-main-section {
  padding: 60px 5%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* ===== FORM CARD ===== */
.contact-form-card {
  background: #ffffff;
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow 0.3s ease;
}

.contact-form-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  color: #0f172a;
  font-size: 28px;
  margin-top: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.form-header p {
  color: #64748b;
  font-size: 15px;
  margin-top: 8px;
  line-height: 1.6;
}

/* ===== FORM ROWS ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* ===== FLOATING FIELD ===== */
.modern-contact-form .floating-field {
  position: relative;
  margin-bottom: 0;
}

.modern-contact-form .floating-field input,
.modern-contact-form .floating-field textarea {
  width: 100%;
  padding: 18px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafbfc;
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
}

.modern-contact-form .floating-field textarea {
  resize: none;
  min-height: 130px;
  margin-bottom: 12px;
}

.modern-contact-form .floating-field input:hover,
.modern-contact-form .floating-field textarea:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.modern-contact-form .floating-field input:focus,
.modern-contact-form .floating-field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.modern-contact-form .floating-field label {
  position: absolute;
  left: 16px;
  top: 18px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding: 0 6px;
}

.modern-contact-form .floating-field input:focus + label,
.modern-contact-form .floating-field input:not(:placeholder-shown) + label,
.modern-contact-form .floating-field textarea:focus + label,
.modern-contact-form .floating-field textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: 12px;
  color: #3b82f6;
  font-weight: 600;
  background: #ffffff;
  letter-spacing: 0.3px;
}

/* Field highlight animation */
.field-highlight {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.floating-field.focused .field-highlight {
  width: calc(100% - 24px);
}

/* ===== TERMS CHECKBOX ===== */
.terms-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.terms-checkbox-wrap:hover {
  background: #f1f5f9;
}

.terms-checkbox-wrap input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #3b82f6;
  flex-shrink: 0;
  border-radius: 4px;
}

.terms-checkbox-wrap label {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}

.terms-checkbox-wrap label a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.terms-checkbox-wrap label a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn-modern {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.submit-btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.submit-btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.submit-btn-modern:hover::before {
  left: 100%;
}

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

.submit-btn-modern .btn-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.submit-btn-modern:hover .btn-icon {
  transform: translateX(4px);
}

.submit-btn-modern.loading {
  pointer-events: none;
  opacity: 0.8;
}

.submit-btn-modern.loading .btn-icon {
  animation: spin 1s linear infinite;
}

.submit-btn-modern.success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

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

/* ===== MAP CARD ===== */
.contact-map-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.contact-map-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.map-header {
  text-align: center;
  margin-bottom: 28px;
}

.map-header h2 {
  color: #0f172a;
  font-size: 24px;
  margin-top: 12px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ===== CONTACT INFO LIST ===== */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.contact-info-item:hover {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateX(4px);
}

.contact-info-item.location-item {
  cursor: default;
}

.contact-info-item.location-item:hover {
  transform: none;
}

.contact-info-item.whatsapp-item:hover {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: rgba(34, 197, 94, 0.2);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.contact-info-item:hover .info-icon {
  transform: scale(1.05);
}

.info-icon.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.info-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.info-arrow {
  display: flex;
  align-items: center;
  color: #94a3b8;
  transition: all 0.25s ease;
}

.contact-info-item:hover .info-arrow {
  color: #22c55e;
  transform: translateX(4px);
}

.map-container {
  flex: 1;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
}

/* ===== SECTION TAG ===== */
.section-tag {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0369a1;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-form-card {
    padding: 36px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .contact-info-list {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .contact-main-section {
    padding: 40px 16px;
  }
  
  .contact-form-card,
  .contact-map-card {
    padding: 28px;
    border-radius: 16px;
  }
  
  .form-header {
    margin-bottom: 28px;
  }
  
  .form-header h2,
  .map-header h2 {
    font-size: 22px;
  }
  
  .form-header p {
    font-size: 14px;
  }
  
  .modern-contact-form .floating-field input,
  .modern-contact-form .floating-field textarea {
    font-size: 16px; /* Prevents zoom on mobile */
    padding: 16px;
  }
  
  .contact-info-item {
    padding: 14px 16px;
    gap: 12px;
  }
  
  .info-icon {
    width: 40px;
    height: 40px;
  }
  
  .info-value {
    font-size: 14px;
  }
  
  .map-container {
    min-height: 220px;
  }
  
  .section-tag {
    font-size: 11px;
    padding: 6px 14px;
  }
}

@media (max-width: 480px) {
  .contact-main-section {
    padding: 30px 16px;
  }
  
  .contact-form-card,
  .contact-map-card {
    padding: 20px 16px;
    border-radius: 14px;
  }
  
  .form-header {
    margin-bottom: 24px;
  }
  
  .form-header h2,
  .map-header h2 {
    font-size: 20px;
    margin-top: 10px;
  }
  
  .terms-checkbox-wrap {
    padding: 12px 14px;
    gap: 10px;
  }
  
  .terms-checkbox-wrap label {
    font-size: 13px;
  }
  
  .submit-btn-modern {
    padding: 14px 20px;
    font-size: 14px;
  }
  
  .contact-info-item {
    padding: 12px 12px;
  }
  
  .info-icon {
    width: 36px;
    height: 36px;
  }
  
  .info-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .info-label {
    font-size: 11px;
  }
  
  .info-value {
    font-size: 13px;
  }
  
  .map-container {
    min-height: 180px;
  }
}
