/* =========================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================= */

.emergency-banner {
  background: var(--accent-orange);
  color: #fff;
  padding: 12px 0;
  text-align: center;
  position: relative;
  z-index: 1001; /* Above navbar */
  margin-top: var(--nav-height);
}

.contact-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  padding: 80px 0;
  display: flex;
  align-items: center;
}

.contact-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--gradient-overlay), url('https://images.unsplash.com/photo-1541888086425-d81bb19240f5?auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.relative-z {
  position: relative;
  z-index: 10;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--bg-primary);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.contact-single-card {
  max-width: 700px;
  margin: 20px auto 60px;
  padding: 60px;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
}

.contact-single-card h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.contact-single-card .subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

/* Left: Form */
.contact-form-card {
  padding: 60px;
  background: transparent;
  color: #fff;
}

.contact-form-card h2 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}

.contact-form-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group.row-half {
  flex: 1;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: #fff;
  transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: transparent;
}

select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2364748B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.auto-save-text {
  font-size: 12px;
  color: #22c55e;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: right;
}

.form-submit {
  width: 100%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes slideUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.success-state {
  text-align: center;
  padding: 40px 20px;
}

.success-state h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.success-state p {
  color: var(--text-muted);
}

/* Right: Info */
.contact-info-panel {
  padding: 60px;
  color: #fff;
}

.contact-info-panel h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.c-info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.c-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.c-icon {
  width: 48px;
  height: 48px;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-icon i {
  color: var(--accent-orange);
  width: 24px;
  height: 24px;
  animation: subtleShake 5s infinite;
}

@keyframes subtleShake {
  0%, 90%, 100% { transform: rotate(0); }
  92% { transform: rotate(-10deg); }
  94% { transform: rotate(10deg); }
  96% { transform: rotate(-10deg); }
  98% { transform: rotate(10deg); }
}

.c-info-list h5 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.c-info-list p, .c-info-list a {
  color: var(--text-body);
  font-size: 15px;
}

.map-container {
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

@media (max-width: 768px) {
  .contact-single-card {
    padding: 30px 20px;
    margin: 10px 0 30px;
    width: 100%;
  }

  .c-info-list li a,
  .c-info-list li span,
  .c-info-list li p {
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 15px !important;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 40px 20px;
  }
  .contact-info-panel {
    padding: 40px 20px;
  }
}
