/* ============================================
   CTAT Ingeniería — Contact Page Styles
   ============================================ */

/* ══════════════════════════════════════════════
   CONTACT LAYOUT
   ══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 1023px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* ══════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════ */
.contact-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  position: relative;
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.contact-form-wrapper > p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: var(--space-2xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: var(--space-xl);
  }
}

/* Submit button */
.form-submit {
  width: 100%;
  margin-top: var(--space-md);
}

.form-submit .btn {
  width: 100%;
  padding: 1rem;
  font-size: var(--fs-body);
  position: relative;
}

.form-submit .btn .btn-text {
  transition: opacity var(--duration-fast);
}

.form-submit .btn .btn-loader {
  position: absolute;
  display: none;
}

.form-submit .btn.loading .btn-text {
  opacity: 0;
}

.form-submit .btn.loading .btn-loader {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-loader .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: rotate 0.7s linear infinite;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-xl);
  background: rgba(16, 185, 129, 0.10);
  border: 2px solid var(--accent-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-success);
}

.form-success .success-icon .material-symbols-outlined {
  font-size: 40px;
}

.form-success h3 {
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════
   CONTACT INFO SIDEBAR
   ══════════════════════════════════════════════ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

.info-card:hover {
  border-color: var(--border-hover);
}

.info-card h4 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.info-card h4 .material-symbols-outlined {
  color: var(--accent-teal);
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.info-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(14, 165, 233, 0.08);
  border-radius: var(--radius-md);
  color: var(--accent-teal);
  flex-shrink: 0;
}

.info-item-icon .material-symbols-outlined {
  font-size: 22px;
}

.info-item-content h5 {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2xs);
}

.info-item-content p,
.info-item-content a {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.info-item-content a:hover {
  color: var(--accent-teal);
}

/* Social links in contact */
.contact-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ══════════════════════════════════════════════
   FULL WIDTH MAP
   ══════════════════════════════════════════════ */
.map-section {
  height: 400px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.3) contrast(1.05);
  transition: filter var(--duration-normal);
}

.map-section:hover iframe {
  filter: grayscale(0.1) contrast(1);
}

.map-section .map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
  color: var(--text-tertiary);
}

.map-section .map-placeholder .material-symbols-outlined {
  font-size: 64px;
  color: var(--accent-teal);
  opacity: 0.3;
}

@media (max-width: 767px) {
  .map-section {
    height: 280px;
  }
}
