/* ==========================================================================
   BESTEC MARINE ENGINEERING - CONTACT PAGE STYLESHEET
   Inspired by Landspect SG Corporate Architecture
   Path: css/contact.css
   ========================================================================== */

:root {
  --contact-navy: #092a4b;
  --contact-navy-dark: #061d35;
  --contact-blue: #1c64a1;
  --contact-cyan: #00a8ff;
  --contact-accent-green: #10b981;
  --contact-text-main: #1e293b;
  --contact-text-muted: #64748b;
  --contact-card-bg: #ffffff;
  --contact-border: #e2e8f0;
}

/* Base Safeguards & Fluid Fit */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

.contact-page-wrapper {
  background-color: #f8fafc;
  min-height: 100vh;
  padding-bottom: 60px;
}

/* --------------------------------------------------------------------------
   Breadcrumb & Hero Header
   -------------------------------------------------------------------------- */
.contact-hero-banner {
  background: linear-gradient(135deg, #061d35 0%, #092a4b 60%, #102e52 100%);
  color: #ffffff;
  padding: 50px 0 45px 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 168, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.contact-breadcrumb a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.contact-hero-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.contact-hero-title span {
  color: #38bdf8;
}

.contact-hero-subtitle {
  font-size: clamp(14px, 1.8vw, 17px);
  color: #cbd5e1;
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Two-Column Core Section
   -------------------------------------------------------------------------- */
.contact-main-section {
  padding: 40px 0 10px 0;
}

/* Left Column: Information & Value Cards */
.contact-info-col {
  padding-right: 20px;
}

.contact-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(28, 100, 161, 0.1);
  color: var(--contact-blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.contact-col-heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--contact-navy);
  margin-bottom: 14px;
  line-height: 1.25;
}

.contact-col-desc {
  font-size: 15px;
  color: var(--contact-text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Enhancing Vessel Performance (Landspect Checkmarks Style) */
.contact-benefits-card {
  background: #ffffff;
  border: 1px solid var(--contact-border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.contact-benefits-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--contact-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-benefits-title i {
  color: var(--contact-blue);
}

.contact-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.45;
}

.contact-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--contact-accent-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Contact Cards Grid (Unified 6-Card Grid: Comms, Management & Facilities) */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 0;
}

.contact-location-grid {
  display: none;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--contact-border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
  min-height: 84px;
  box-sizing: border-box;
}

.contact-info-card:hover {
  transform: translateY(-2px);
  border-color: var(--contact-blue);
  box-shadow: 0 8px 24px rgba(28, 100, 161, 0.12);
}

.contact-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e0f2fe;
  color: var(--contact-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.contact-card-content {
  flex: 1;
  min-width: 0;
}

.contact-card-content h6 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--contact-text-muted);
  margin-bottom: 2px;
}

.contact-card-content a,
.contact-card-content p {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--contact-navy);
  margin: 0;
  text-decoration: none;
  line-height: 1.3;
  word-break: break-word;
  display: block;
}

.contact-card-content a:hover {
  color: var(--contact-blue);
}

.contact-card-content .small {
  font-size: 11.5px;
  line-height: 1.25;
}

/* Strategic Location Cards */
.contact-location-card {
  margin-bottom: 0;
}

/* Right Column: Landspect SG Inspired Enquiry Card */
.contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: 0 10px 30px rgba(9, 42, 75, 0.06);
  position: relative;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 4px;
  background: linear-gradient(90deg, var(--contact-blue) 0%, var(--contact-cyan) 100%);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.contact-form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--contact-navy);
  margin-bottom: 8px;
}

.contact-form-desc {
  font-size: 14px;
  color: var(--contact-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.form-group-wrap {
  margin-bottom: 18px;
}

.form-label-custom {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.form-control-custom {
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--contact-text-main);
  transition: all 0.2s ease;
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--contact-blue);
  box-shadow: 0 0 0 3px rgba(28, 100, 161, 0.15);
}

.form-control-custom::placeholder {
  color: #94a3b8;
}

select.form-control-custom {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 10px;
  padding-right: 36px;
}

textarea.form-control-custom {
  resize: vertical;
  min-height: 110px;
}

.contact-submit-btn {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, #1c64a1 0%, #0d47a1 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(28, 100, 161, 0.3);
  margin-top: 8px;
}

.contact-submit-btn:hover {
  background: linear-gradient(135deg, #0077cc 0%, #00a8ff 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 168, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Google Map Section (Landspect SG Style)
   -------------------------------------------------------------------------- */
.contact-map-section {
  padding: 15px 0 35px 0;
}

.contact-map-header {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-map-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--contact-navy);
  margin-bottom: 10px;
}

.contact-map-sub {
  font-size: 15px;
  color: var(--contact-text-muted);
}

.contact-map-card {
  background: #ffffff;
  border: 1px solid var(--contact-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.contact-map-iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.contact-map-footer-strip {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--contact-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-map-footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 600;
}

.contact-map-footer-info i {
  color: var(--contact-blue);
  font-size: 18px;
}

.contact-map-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--contact-blue);
  text-decoration: none;
  background: #e0f2fe;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.contact-map-directions-btn:hover {
  background: var(--contact-blue);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Corporate Spotlight Showcase Card (Featuring contactus.jpg)
   -------------------------------------------------------------------------- */
.contact-spotlight-card {
  background: #ffffff;
  border: 1px solid var(--contact-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(9, 42, 75, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.contact-spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(9, 42, 75, 0.1);
}

.contact-spotlight-img-wrap {
  position: relative;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  background: #0f172a;
}

.contact-spotlight-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-spotlight-card:hover .contact-spotlight-img {
  transform: scale(1.04);
}

.contact-img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(6, 39, 96, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.contact-img-badge i {
  color: #38bdf8;
  font-size: 16px;
}

.contact-spotlight-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--contact-navy);
  line-height: 1.35;
  margin-bottom: 14px;
}

.contact-spotlight-desc {
  font-size: 15px;
  color: var(--contact-text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints & Zoom Safeguards
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .contact-spotlight-img-wrap {
    min-height: 220px;
  }
  .contact-spotlight-img {
    min-height: 220px;
    max-height: 260px;
  }

  .contact-info-col {
    padding-right: 0;
    margin-bottom: 35px;
  }
  .contact-form-card {
    padding: 28px 22px;
  }
}

@media (max-width: 767px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
  .contact-hero-banner {
    padding: 35px 0 30px 0;
  }
  .contact-map-iframe {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .contact-form-card {
    padding: 22px 16px;
  }
  .contact-location-card,
  .contact-info-card {
    padding: 14px 16px;
  }
}
