/*
  ==========================================
  Creative Contact Page Styles for Morocco Magic Tours
  ==========================================
*/

/* --- FIX for Sticky Header Overlap --- */
.whatsapp-chat-hero {
  margin-top: 90px; /* Adjust this value to match your header's height */
}


/* --- WhatsApp Chat Hero Section (V4 - Final Background) --- */
.whatsapp-chat-hero {
  padding: var(--spacing-xxl) 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Immersive Background Image with Dark Overlay */
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1559925523-10de9e23cf90?q=80&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Creates the parallax scrolling effect */
}

.phone-mockup {
  width: 375px;
  height: 720px;
  background-color: #111b21; /* Dark WhatsApp theme color */
  border-radius: 40px;
  /* Updated shadow to a "glow" effect that works on a dark background */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
  padding: 15px;
  display: flex;
  flex-direction: column;
  position: relative; /* Ensures the mockup is on top of the background */
  z-index: 1;
}

.phone-notch {
  width: 150px;
  height: 25px;
  background-color: #111;
  border-radius: 0 0 15px 15px;
  margin: 0 auto;
  position: relative;
  top: -15px;
  z-index: 2;
}

.chat-screen {
  flex-grow: 1;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* NEW BACKGROUND IMAGE */
  background-color: #0b141a; /* Fallback color */
  background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url('https://i.ibb.co/xqJTHTzq/Chefchaouen-instagram-spots-paid-setup-house-819x1024.png');
  background-size: cover;
  background-position: center;
}

.chat-header {
  background-color: #202c33;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e9edef;
  flex-shrink: 0;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-text {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-weight: 500;
}

.profile-status {
  font-size: 0.8rem;
  color: #8696a0;
}

.header-icons {
  display: flex;
  gap: 20px;
  font-size: 1.2rem;
  color: #aebac1;
}

.message-area {
  flex-grow: 1;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.chat-bubble {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 75%;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up 0.5s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Added a subtle shadow for better readability */
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.chat-bubble.received {
  background-color: #202c33; /* Darker message bubble */
  color: #e9edef;
  border-top-left-radius: 0;
  align-self: flex-start;
}

/* Message animation delays */
.msg-1 { animation-delay: 0.5s; }
.msg-2 { animation-delay: 1.5s; }
.msg-3 { animation-delay: 2.8s; }
.msg-4 { animation-delay: 4.0s; }

@keyframes slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing indicator animation */
.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #8696a0;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.3s infinite;
}
.typing-indicator span:nth-of-type(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-of-type(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}


.chat-cta-footer {
  background-color: #202c33;
  padding: 20px;
  text-align: center;
  flex-shrink: 0;
  border-top: 1px solid #2f3b44;
}

.chat-cta-footer h3 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.chat-cta-footer p {
  color: #aebac1;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.start-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #00a884; /* WhatsApp Green */
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.start-chat-btn:hover {
  background-color: #01735f;
  transform: scale(1.05);
}

.start-chat-btn i {
  font-size: 1.5rem;
}


/* --- Main Page Wrapper (Dark Theme) --- */
.contact-page-wrapper {
  background-color: #1a1a1a;
  background-image: url('https://www.transparenttextures.com/patterns/arabesque.png');
  padding: var(--spacing-xl) 0;
  font-family: 'Montserrat', sans-serif;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background-color: #111;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

/* --- Left Panel: Invitation --- */
.contact-invitation {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1527338611623-4e242563220a?q=80') center/cover;
  padding: var(--spacing-xxl) var(--spacing-xl);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.invitation-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-primary-light);
  display: block;
  margin-bottom: var(--spacing-sm);
}

.invitation-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
}

.invitation-description {
  color: var(--color-gray-300);
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
}

.channels-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--color-primary-dark);
}

.contact-channels {
  margin-bottom: var(--spacing-xl);
}

.contact-channel {
  display: flex;
  align-items: center;
  color: var(--color-gray-300);
  margin-bottom: var(--spacing-md);
  transition: color 0.3s ease;
  font-size: 1rem;
}

.contact-channel:hover {
  color: var(--color-primary-light);
}

.contact-channel i {
  font-size: 1.1rem;
  width: 30px;
  color: var(--color-primary);
}

.office-info p {
  display: flex;
  align-items: center;
  color: var(--color-gray-400);
  margin-bottom: var(--spacing-sm);
}

.office-info i {
  font-size: 1.1rem;
  width: 30px;
  color: var(--color-primary-dark);
}

/* --- Right Panel: Form Canvas --- */
.contact-form-canvas {
  background-color: var(--color-white);
  padding: var(--spacing-xxl) var(--spacing-xl);
}

.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.form-group {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  font-weight: 500;
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-xs);
  display: block;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 2px solid var(--color-gray-200);
  background-color: transparent;
  font-size: 1rem;
  color: var(--color-gray-800);
  transition: border-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--color-primary);
}

.form-group select {
  appearance: none;
  background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c35831' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right / 1em;
  padding-right: 1.5em;
  cursor: pointer;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: var(--spacing-md);
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 8px 20px rgba(195, 88, 49, 0.25);
  transform: translateY(-3px);
}


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

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .contact-invitation {
    padding: var(--spacing-xl);
    text-align: center;
  }
  .contact-channel, .office-info p {
    justify-content: center;
  }
  .contact-form-canvas {
    padding: var(--spacing-xl);
  }
  .invitation-title {
      font-size: 2.5rem;
  }
  .form-title {
      font-size: 2rem;
  }
}

@media (max-width: 480px) {
    .phone-mockup {
      width: 95%;
      height: 680px;
    }
    .whatsapp-chat-hero {
      padding: var(--spacing-lg) 0;
    }
    .contact-page-wrapper {
        padding: 0;
    }
    .contact-container {
        border-radius: 0;
    }
    .contact-invitation, .contact-form-canvas {
        padding: var(--spacing-lg);
    }
    .invitation-title {
        font-size: 2rem;
    }
    .form-title {
        font-size: 1.7rem;
    }
}

/* === NEW STYLES FOR MOROCCO MAGIC TOURS LOGO === */

#header .logo a, 
.footer .footer-logo a {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(45deg, #c5a646, #e7d28c, #dcc36a, #bfa044);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: 0.5px;
  padding: 5px 0;
}

#header .logo a {
  font-size: 2rem;
}

.footer .footer-logo a {
    font-size: 1.8rem;
}