/* ==========================================================================
   CONTACT.CSS - HIGH RESOLUTION TECHNOLOGIES CONTACT PAGE
   Ultra-Premium Modern UI with Frosted Glass Cards, Micro-Animations & Responsive Grid
   ========================================================================== */

/* 1. Contact Page Hero Banner */
.contact-hero-banner-section {
  padding: 2.5rem 0 1rem;
  background-color: #f8fafc;
}

.contact-banner-frame {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px -10px rgba(15, 23, 42, 0.1), 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  position: relative;
  aspect-ratio: 21 / 8;
  max-height: 380px;
  background: #ffffff;
}

@media (max-width: 991px) {
  .contact-banner-frame {
    aspect-ratio: 16 / 7.5;
    border-radius: 16px;
  }
}

@media (max-width: 576px) {
  .contact-banner-frame {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
  .contact-hero-banner-section {
    padding: 1.5rem 0 0.5rem;
  }
}

.contact-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-banner-frame:hover .contact-banner-img {
  transform: scale(1.02);
}

/* 2. Main Two-Column Contact Section */
.contact-main-section {
  padding: 2.5rem 0 5.5rem;
  background-color: #f8fafc;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: stretch;
}

@media (max-width: 991px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Section Titles with Coral / Orange Underline */
.contact-section-header {
  margin-bottom: 1.25rem;
}

.contact-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-section-title .highlight-cyan {
  color: #0284c7;
}

.contact-title-underline {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
  border-radius: 4px;
}

/* 3. Address Column Cards (Compact & Evenly Distributed) */
.contact-address-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.location-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #0284c7;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-card:hover {
  transform: translateY(-2px);
  border-color: #bae6fd;
  box-shadow: 0 10px 24px -6px rgba(2, 132, 199, 0.12), 0 3px 8px rgba(0, 0, 0, 0.03);
}

.location-card:hover::before {
  opacity: 1;
}

.location-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.location-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0f2fe 0%, #ccfbf1 100%);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon-wrapper svg {
  width: 17px;
  height: 17px;
}

.location-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.location-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.2rem;
  line-height: 1.25;
}

.location-address-text {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.4;
  margin: 0 0 0.45rem;
}

/* Quick Interactive Chips inside Location Cards */
.location-chips-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.location-chip:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

.location-chip svg {
  width: 12px;
  height: 12px;
  color: currentColor;
}

/* Speciality capability badge for manufacturing units */
.speciality-badge {
  font-size: 0.75rem;
  color: #0d9488;
  background: #f0fdfa;
  border: 1px dashed #99f6e4;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
  margin-top: auto;
}

.speciality-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* 4. Form Column: Send Us A Message Card */
.contact-form-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-form-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

@media (max-width: 576px) {
  .contact-form-card {
    padding: 1.25rem;
    border-radius: 14px;
  }
}

.form-header-note {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0 0 1.15rem;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.contact-send-btn-row {
  margin-top: auto;
  padding-top: 0.25rem;
}

@media (max-width: 991px) {
  .contact-address-col,
  .contact-form-col {
    height: auto;
  }
  .location-card,
  .contact-form-card {
    flex: unset;
  }
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

@media (max-width: 576px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
  }
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-field-label span.req {
  color: #ef4444;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-adornment {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.input-with-icon .contact-input {
  padding-left: 2.65rem;
}

.contact-input,
.contact-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.94rem;
  color: #0f172a;
  font-family: inherit;
  transition: all 0.25s ease;
  outline: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
}

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

.contact-input:focus,
.contact-textarea:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.input-with-icon:focus-within .input-icon-adornment {
  color: #0284c7;
}

.contact-textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.5;
}

/* Form Validation Feedback */
.contact-input.is-invalid,
.contact-textarea.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.contact-input.is-invalid:focus,
.contact-textarea.is-invalid:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.contact-input.is-valid,
.contact-textarea.is-valid {
  border-color: #10b981 !important;
}

.contact-field-error {
  display: none;
  font-size: 0.74rem;
  color: #ef4444;
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.3;
}

.contact-field-error.visible {
  display: block;
  animation: fadeInError 0.2s ease;
}

@keyframes fadeInError {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Send Button */
.contact-send-btn {
  background: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 2.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.2);
}

.contact-send-btn:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30, 41, 59, 0.3);
}

.contact-send-btn:active {
  transform: translateY(0);
}

.contact-send-btn svg {
  transition: transform 0.25s ease;
}

.contact-send-btn:hover svg {
  transform: translateX(4px);
}

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

/* Success Confirmation Banner inside form */
.contact-success-alert {
  display: none;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  color: #065f46;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.contact-success-alert.visible {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  animation: fadeInSuccess 0.3s ease;
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 5. Call-To-Action Radiant Banner (Exact Reference Match with Modern Polish) */
.contact-cta-banner {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 60%, #0d9488 100%);
  color: #ffffff;
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.contact-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.contact-cta-banner-text {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  line-height: 1.25;
}

.contact-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-action-btn-primary {
  background: #ffffff;
  color: #0284c7;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.cta-action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: #0369a1;
}

.cta-action-btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.cta-action-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}
