/* Contact & Chat Pages - Professional Style
   Learning Hub - 2025
*/

:root {
    /* Matte color palette with educational theme */
    --primary-color: #2d6a4f;     /* Matte deep green - same as other pages */
    --primary-light: #40916c;     /* Matte medium green */
    --primary-dark: #1b4332;      /* Matte dark green */
    --secondary-color: #52b788;   /* Matte green accent */
    --accent-color: #74c69d;      /* Matte light green */
    --dark-color: #081c15;        /* Very dark green-black */
    --light-color: #f1f5f3;       /* Off-white with slight green tint */
    --text-color: #263d33;        /* Dark green-gray for text */
    --bg-light: #e9f0ed;          /* Background with green tint */
    --whatsapp-color: #25D366;    /* WhatsApp brand color */
    
    /* Matte gradients */
    --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    
    /* Border radius */
    --border-radius: 8px;
  }
  
  /* General Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-width: 320px;
  }
  
  /* Section styles */
  section {
    padding: 80px 5%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
  }
  
  section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
  }
  
  /* Section header */
  .section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
  }
  
  .section-subtitle {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
  }
  
  .section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    letter-spacing: -0.5px;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
  }
  
  .animated-bar {
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 0 auto;
    border-radius: 3px;
  }
  
  /* Hero Section */
  .hero-banner {
    background-color: var(--light-color);
    text-align: center;
    padding: 80px 5% 60px;
    width: 100%;
    position: relative;
  }
  
  .hero-content {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
  }
  
  .hero-banner h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
  }
  
  .hero-banner h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    transform: translateX(-50%);
    border-radius: 4px;
  }
  
  .hero-banner p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
  }
  
  /* Contact Information Section */
  .contact-info-section {
    background-color: white;
  }
  
  .contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .contact-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(45, 106, 79, 0.05);
    transition: transform 0.3s ease;
  }
  
  .contact-icon {
    position: relative;
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
  }
  
  .contact-icon i {
    display: inline-block;
    color: white;
    font-size: 26px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    z-index: 2;
  }
  
  .contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
  }
  
  .contact-card p {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 15px;
  }
  
  .contact-card a, 
  .contact-card address {
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    font-style: normal;
  }
  
  .chat-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 10px;
    font-weight: 500;
  }
  
  /* Contact Form Section */
  .contact-form-section {
    background-color: var(--bg-light);
  }
  
  .form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .form-group {
    margin-bottom: 25px;
    width: 48%;
    display: inline-block;
  }
  
  .full-width {
    width: 100%;
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
  }
  
  input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
    color: var(--text-color);
    transition: border-color 0.3s ease;
  }
  
  input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  .submit-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    min-width: 200px;
  }
  
  /* Map Section */
  .map-section {
    background-color: white;
  }
  
  .map-container {
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--light-color);
    border: 1px solid rgba(45, 106, 79, 0.1);
  }
  
  .map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
  }
  
  .map-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
  }
  
  .map-placeholder h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
  }
  
  .map-placeholder p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
  }
  
  .map-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  /* Business Hours Section */
  .hours-section {
    background-color: var(--bg-light);
  }
  
  .hours-container {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .hours-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .hours-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }
  
  .day {
    font-weight: 600;
    color: var(--dark-color);
  }
  
  .time {
    color: var(--primary-color);
  }
  
  .holiday-note {
    margin-top: 20px;
    font-style: italic;
    color: #777;
    text-align: center;
  }
  
  /* WhatsApp Chat Page Specific Styles */
  .whatsapp-section {
    background-color: white;
  }
  
  .whatsapp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
  }
  
  .whatsapp-content {
    padding: 20px;
  }
  
  .whatsapp-icon {
    font-size: 60px;
    color: var(--whatsapp-color);
    margin-bottom: 20px;
    text-align: center;
  }
  
  .whatsapp-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
    text-align: center;
  }
  
  .whatsapp-content p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.7;
  }
  
  .response-info {
    margin: 30px 0;
  }
  
  .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
  }
  
  .info-icon {
    flex: 0 0 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    position: relative;
  }
  
  .info-icon i {
    display: inline-block;
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    z-index: 2;
  }
  
  .info-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
  }
  
  .info-text p {
    font-size: 14px;
    margin: 0;
  }
  
  .whatsapp-button {
    display: block;
    background-color: var(--whatsapp-color);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    margin: 30px auto 0;
    transition: all 0.3s ease;
    max-width: 300px;
  }
  
  .whatsapp-button i {
    margin-right: 8px;
    font-size: 20px;
  }
  
  /* Phone Mockup for WhatsApp */
  .whatsapp-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .phone-mockup {
    width: 300px;
    height: 600px;
    background-color: #111;
    border-radius: 30px;
    padding: 15px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  
  .phone-screen {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .chat-header {
    background-color: var(--primary-color);
    padding: 15px;
    display: flex;
    align-items: center;
    color: white;
  }
  
  .profile-pic {
    width: 40px;
    height: 40px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
  }
  
  .profile-pic:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>') center/cover;
    border-radius: 50%;
  }
  
  .chat-name {
    font-size: 16px;
    font-weight: 600;
  }
  
  .chat-messages {
    flex: 1;
    background-color: #e5ded8;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  
  .message {
    max-width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
    position: relative;
  }
  
  .message p {
    margin: 0;
    font-size: 14px;
  }
  
  .message .time {
    font-size: 10px;
    color: #999;
    display: block;
    text-align: right;
    margin-top: 5px;
  }
  
  .received {
    background-color: white;
    align-self: flex-start;
  }
  
  .sent {
    background-color: #dcf8c6;
    align-self: flex-end;
  }
  
  /* FAQ Section */
  .faq-section {
    background-color: var(--bg-light);
  }
  
  .faq-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  }
  
  .faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  
  .faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
  }
  
  .faq-question i {
    font-size: 16px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
  }
  
  .faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .faq-answer p {
    margin: 0;
    padding-bottom: 20px;
    color: var(--text-color);
  }
  
  .faq-item.active .faq-answer {
    max-height: 200px;
  }
  
  .faq-item.active .faq-question i {
    transform: rotate(180deg);
  }
  
  /* Alternative Contact Section */
  .alt-contact-section {
    background-color: white;
  }
  
  .alt-contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .alt-contact-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .alt-contact-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
  }
  
  .alt-contact-icon i {
    display: inline-block;
    color: white;
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    z-index: 2;
  }
  
  .alt-contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
  }
  
  .alt-contact-card p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 15px;
  }
  
  .alt-contact-card a {
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
  }
  
  /* Force font-face loading for FontAwesome */
  @font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff2") format("woff2");
  }
  
  @font-face {
    font-family: 'Font Awesome 5 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-brands-400.woff2") format("woff2");
  }
  
  /* Responsive styles */
  @media screen and (max-width: 992px) {
    .whatsapp-container {
      grid-template-columns: 1fr;
    }
    
    .whatsapp-image {
      display: none;
    }
  }
  
  @media screen and (max-width: 768px) {
    section {
      padding: 60px 5%;
    }
    
    .section-title {
      font-size: 28px;
    }
    
    .hero-banner {
      padding: 60px 5%;
    }
    
    .hero-banner h1 {
      font-size: 32px;
    }
    
    .hero-banner p {
      font-size: 16px;
    }
    
    .form-group {
      width: 100%;
      display: block;
    }
    
    .form-container {
      padding: 30px 20px;
    }
    
    .contact-cards {
      grid-template-columns: 1fr;
    }
  }
  
  @media screen and (max-width: 576px) {
    .hero-banner h1 {
      font-size: 28px;
    }
    
    .section-title {
      font-size: 24px;
    }
    
    .whatsapp-button {
      padding: 12px 20px;
      font-size: 16px;
    }
    
    .contact-icon,
    .info-icon,
    .alt-contact-icon {
      margin: 0 auto 15px;
    }
  }