/* =============================================
   CONTACT PAGE STYLES — Scoped under .contact-page
   Does NOT modify or override any existing styles.
   ============================================= */

/* === VARIABLES (same palette as login.css) === */
.contact-page {
  --primary-color: #f07e01;
  --primary-hover: #d66900;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --card-bg: rgba(22, 22, 26, 0.7);
  --text-color: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --font-family-base: 'Poppins', sans-serif;
  --font-family-heading: 'Montserrat', sans-serif;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.25);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* === GLOBAL RESET (scoped) === */
.contact-page,
.contact-page *,
.contact-page *::before,
.contact-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === BODY === */
.contact-page {
  font-family: var(--font-family-base);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: url('../images/login_page_logo/LILFOLKS_2.25_26-6-24[2].jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  position: relative;
}

/* Dark overlay */
.contact-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 0;
  pointer-events: none;
}

/* === ANIMATIONS === */
@keyframes contactFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes contactFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes whatsappPulse {
  0%   { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
  50%  { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7); }
  100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
}

/* ==============================================
   LAYOUT WRAPPER
   — single column, centered, never overflows
   ============================================== */
.contact-page .contact-wrapper {
  position: relative;
  z-index: 1;
  width: 92%;
  margin: 0 auto;
  padding: 20px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ==============================================
   HEADER
   ============================================== */
.contact-page .contact-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  animation: contactFadeIn 0.5s ease-out;
}

.contact-page .contact-header .brand-name {
  font-family: var(--font-family-heading);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.contact-page .contact-header .brand-name span {
  color: var(--primary-color);
}

.contact-page .contact-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-normal);
  backdrop-filter: blur(5px);
  white-space: nowrap;
  flex-shrink: 0;
}

.contact-page .contact-header .back-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-color);
  transform: translateY(-1px);
}

.contact-page .contact-header .back-link i {
  font-size: 12px;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.contact-page .contact-hero {
  text-align: center;
  padding: 10px 0 5px;
  width: 100%;
  animation: contactFadeIn 0.6s ease-out;
}

.contact-page .contact-hero h1 {
  font-family: var(--font-family-heading);
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 8px;
  line-height: 1.2;
}

.contact-page .contact-hero h1 span {
  color: var(--primary-color);
}

.contact-page .contact-hero .hero-tagline {
  font-size: clamp(14px, 3vw, 17px);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

/* ==============================================
   GLASSMORPHIC CARD
   — overflow hidden prevents any child leak
   ============================================== */
.contact-page .contact-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: contactFadeInUp 0.7s ease-out;
  animation-fill-mode: both;
}

.contact-page .contact-card:nth-child(3) { animation-delay: 0.1s; }
.contact-page .contact-card:nth-child(4) { animation-delay: 0.2s; }
.contact-page .contact-card:nth-child(5) { animation-delay: 0.3s; }
.contact-page .contact-card:nth-child(6) { animation-delay: 0.4s; }

/* Card Title */
.contact-page .card-title {
  font-family: var(--font-family-heading);
  font-size: clamp(17px, 3.5vw, 22px);
  color: var(--primary-color);
  margin: 0 0 20px;
  padding: 0;
  text-align: center;
  font-weight: 600;
  position: relative;
  display: block;
  width: 100%;
}

.contact-page .card-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 1px;
  margin: 8px auto 0;
}

/* ==============================================
   BUSINESS DETAILS LIST
   ============================================== */
.contact-page .details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.contact-page .details-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(14px, 2.8vw, 16px);
  color: var(--text-secondary);
  line-height: 1.6;
  width: 100%;
  min-width: 0; /* prevent flex overflow */
}

.contact-page .details-list li .detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(240, 126, 1, 0.12);
  color: var(--primary-color);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-page .details-list li .detail-content {
  flex: 1;
  min-width: 0; /* prevent text overflow */
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-page .details-list li .detail-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-page .details-list li .detail-value {
  color: var(--text-color);
  font-weight: 500;
}

.contact-page .details-list li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  word-break: break-all;
}

.contact-page .details-list li a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==============================================
   GOOGLE MAPS
   — aspect-ratio based, overflow clipped, no leak
   ============================================== */
.contact-page .map-container {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.3);
}

.contact-page .map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Get Directions Button — contained inside card */
.contact-page .directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  font-weight: 600;
  font-size: clamp(14px, 3vw, 16px);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(240, 126, 1, 0.3);
  font-family: var(--font-family-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-page .directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 126, 1, 0.4);
}

.contact-page .directions-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(240, 126, 1, 0.3);
}

/* ==============================================
   QUICK CONTACT ACTIONS
   — 3-column grid, equal sizing, no overflow
   ============================================== */
.contact-page .contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.contact-page .action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 8px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-family-base);
  transition: all var(--transition-normal);
  backdrop-filter: blur(5px);
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.contact-page .action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-page .action-btn:active {
  transform: translateY(1px);
}

.contact-page .action-btn .action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 17px;
  flex-shrink: 0;
}

.contact-page .action-btn.call-action .action-icon {
  background: rgba(240, 126, 1, 0.15);
  color: var(--primary-color);
}

.contact-page .action-btn.email-action .action-icon {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
}

.contact-page .action-btn.map-action .action-icon {
  background: rgba(46, 204, 64, 0.15);
  color: #2ecc40;
}

/* ==============================================
   FOOTER
   ============================================== */
.contact-page .contact-footer {
  text-align: center;
  padding: 10px 0 0;
  font-size: clamp(12px, 2.5vw, 14px);
  color: rgba(255, 255, 255, 0.4);
  animation: contactFadeIn 0.7s ease-out;
  animation-delay: 0.5s;
  animation-fill-mode: both;
  width: 100%;
}

.contact-page .contact-footer p {
  margin: 0;
  padding: 0;
}

.contact-page .contact-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

/* ==============================================
   FLOATING WHATSAPP BUTTON
   ============================================== */
.contact-page .whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  animation: whatsappPulse 2.5s infinite ease-in-out;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.contact-page .whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.contact-page .whatsapp-float:active {
  transform: scale(0.95);
}

.contact-page .whatsapp-float img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.contact-page .whatsapp-float i {
  font-size: 28px;
  color: white;
}

/* Tooltip — desktop only */
.contact-page .whatsapp-float::before {
  content: 'Chat with us';
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  font-family: var(--font-family-base);
}

.contact-page .whatsapp-float:hover::before {
  opacity: 1;
}

/* === TEXT SELECTION === */
.contact-page ::selection {
  background-color: var(--primary-color);
  color: white;
}

/* === FOCUS === */
.contact-page :focus {
  outline: 3px solid rgba(240, 126, 1, 0.5);
  outline-offset: 2px;
}


/* ==============================================
   RESPONSIVE BREAKPOINTS
   ============================================== */

/* --- SMALL PHONES (≤ 360px) --- */
@media (max-width: 360px) {
  .contact-page .contact-wrapper {
    padding: 12px 12px 110px;
    gap: 14px;
  }

  .contact-page .contact-card {
    padding: 16px 14px;
  }

  .contact-page .contact-hero h1 {
    font-size: 22px;
  }

  .contact-page .action-btn {
    padding: 12px 4px;
    gap: 6px;
    font-size: 11px;
  }

  .contact-page .action-btn .action-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .contact-page .details-list li .detail-icon {
    min-width: 30px;
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 8px;
  }

  .contact-page .details-list li {
    gap: 10px;
  }

  .contact-page .directions-btn {
    padding: 12px 12px;
    font-size: 14px;
  }

  .contact-page .whatsapp-float {
    bottom: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .contact-page .whatsapp-float img,
  .contact-page .whatsapp-float i {
    width: 22px;
    height: 22px;
    font-size: 22px;
  }

  .contact-page .whatsapp-float::before {
    display: none;
  }
}

/* --- PHONES (361px – 480px) --- */
@media (min-width: 361px) and (max-width: 480px) {
  .contact-page .contact-wrapper {
    padding: 14px 14px 110px;
    gap: 16px;
  }

  .contact-page .contact-card {
    padding: 20px 16px;
  }

  .contact-page .action-btn {
    padding: 14px 6px;
    gap: 6px;
    font-size: 12px;
  }

  .contact-page .action-btn .action-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .contact-page .details-list li .detail-icon {
    min-width: 32px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .contact-page .directions-btn {
    padding: 13px 14px;
  }

  .contact-page .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  .contact-page .whatsapp-float img,
  .contact-page .whatsapp-float i {
    width: 24px;
    height: 24px;
    font-size: 24px;
  }

  .contact-page .whatsapp-float::before {
    display: none;
  }
}

/* --- LARGE PHONES / SMALL TABLETS (481px – 768px) --- */
@media (min-width: 481px) and (max-width: 768px) {
  .contact-page .contact-wrapper {
    max-width: 560px;
    padding: 20px 20px 120px;
    gap: 20px;
  }

  .contact-page .contact-card {
    padding: 24px 22px;
  }

  .contact-page .action-btn {
    padding: 20px 10px;
  }

  .contact-page .whatsapp-float::before {
    display: none;
  }
}

/* --- TABLETS (769px – 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .contact-page .contact-wrapper {
    width: 85%;
    max-width: 750px;
    padding: 30px 0 120px;
    gap: 24px;
  }

  .contact-page .contact-card {
    padding: 30px 32px;
  }

  .contact-page .card-title {
    font-size: 22px;
    margin-bottom: 22px;
  }

  .contact-page .contact-hero h1 {
    font-size: 32px;
  }

  .contact-page .details-list {
    gap: 18px;
  }

  .contact-page .details-list li {
    font-size: 16px;
    gap: 14px;
  }

  .contact-page .details-list li .detail-icon {
    min-width: 40px;
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .contact-page .contact-actions {
    gap: 16px;
  }

  .contact-page .action-btn {
    padding: 24px 14px;
    font-size: 15px;
  }

  .contact-page .action-btn .action-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .contact-page .directions-btn {
    padding: 15px 20px;
    font-size: 16px;
  }
}

/* --- DESKTOPS (1025px – 1439px) --- */
@media (min-width: 1025px) and (max-width: 1439px) {
  .contact-page .contact-wrapper {
    width: 75%;
    max-width: 900px;
    padding: 40px 0 120px;
    gap: 30px;
  }

  .contact-page .contact-card {
    padding: 36px 44px;
  }

  .contact-page .card-title {
    font-size: 24px;
    margin-bottom: 26px;
  }

  .contact-page .contact-hero h1 {
    font-size: 38px;
  }

  .contact-page .contact-hero .hero-tagline {
    font-size: 18px;
  }

  .contact-page .details-list {
    gap: 22px;
  }

  .contact-page .details-list li {
    font-size: 17px;
    gap: 16px;
  }

  .contact-page .details-list li .detail-icon {
    min-width: 46px;
    width: 46px;
    height: 46px;
    font-size: 19px;
  }

  .contact-page .details-list li .detail-label {
    font-size: 12px;
  }

  .contact-page .contact-actions {
    gap: 20px;
  }

  .contact-page .action-btn {
    padding: 28px 20px;
    font-size: 16px;
    gap: 10px;
  }

  .contact-page .action-btn .action-icon {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  .contact-page .directions-btn {
    padding: 16px 24px;
    font-size: 17px;
  }

  .contact-page .map-container {
    aspect-ratio: 16 / 9;
  }
}

/* --- LARGE DESKTOPS / ULTRAWIDE (1440px+) --- */
@media (min-width: 1440px) {
  .contact-page .contact-wrapper {
    width: 60%;
    max-width: 1080px;
    padding: 50px 0 130px;
    gap: 34px;
  }

  .contact-page .contact-card {
    padding: 40px 52px;
  }

  .contact-page .card-title {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .contact-page .contact-hero h1 {
    font-size: 42px;
  }

  .contact-page .contact-hero .hero-tagline {
    font-size: 19px;
  }

  .contact-page .details-list {
    gap: 24px;
  }

  .contact-page .details-list li {
    font-size: 18px;
    gap: 18px;
  }

  .contact-page .details-list li .detail-icon {
    min-width: 50px;
    width: 50px;
    height: 50px;
    font-size: 21px;
    border-radius: 14px;
  }

  .contact-page .details-list li .detail-label {
    font-size: 13px;
  }

  .contact-page .contact-actions {
    gap: 24px;
  }

  .contact-page .action-btn {
    padding: 32px 24px;
    font-size: 17px;
    gap: 12px;
    border-radius: 16px;
  }

  .contact-page .action-btn .action-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .contact-page .directions-btn {
    padding: 18px 28px;
    font-size: 18px;
  }

  .contact-page .map-container {
    aspect-ratio: 16 / 9;
  }

  .contact-page .whatsapp-float {
    width: 62px;
    height: 62px;
  }

  .contact-page .whatsapp-float img,
  .contact-page .whatsapp-float i {
    width: 32px;
    height: 32px;
    font-size: 32px;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .contact-page *,
  .contact-page *::before,
  .contact-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
