/* public/CSS/contactUs.css */

/* Assuming these are defined in your :root or a common CSS file */
:root {
    --primary-navy: #072ac8;
    --primary-yellow: #ffc600;
    --primary-blue: #1e96fc;
    --background: #f7f7f7;
    --text-dark: #343a40;
    --text-medium: #495057;
    --text-light: #6c757d;
}

/* General body and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Ubuntu", sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Ubuntu", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background);
    color: var(--text-dark);
}

/* --- Main Layout Sections - Define their stacking context explicitly --- */
main.main-content {
    position: relative;
    z-index: 1;
}

.contact-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    background-color: transparent;
    border-radius: 16px; 
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Your header and floating buttons should also have appropriate z-index values */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.floating-buttons-wrapper {
    position: fixed;
    z-index: 990;
    bottom: 20px;
    right: 20px;
}


/* --- Form Container (Left Side) --- */
.contact-form-container {
    flex: 1;
    min-width: 300px;
    display: block;
}

.contact-header {
    font-size: 3.5em;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.contact-tagline {
    font-size: 1.1em;
    color: var(--primary-navy);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* From Uiverse.io by chris_6688 */ 
/* Created by chris_6688 from uiverse.io */
.input-container {
     display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease-out forwards;

}
.styled_input_bar {
  width: 100%;
  padding: 1em;
  font-size: 1em;
  border: 0.1em solid var(--primary-yellow);
  border-radius: 2em;
 
  background-color:transparent;
  color: grey;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.styled_input_bar::placeholder {
  color: grey;
  transition: all 0.3s ease;
}
.styled_input_bar:focus {
  border-color: var(--primary-blue);
}
.styled_input_bar:focus::placeholder {
  color: transparent;
}
.input-label {
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
  color: var(--primary-yellow);
  pointer-events: none;
  transition: all 0.3s ease;
}
.styled_input_bar:focus + .input-label,
.styled_input_bar:not(:placeholder-shown) + .input-label {
  top: 0.1em;
  left: 1em;
  font-size: 0.8em;
  color: var(--primary-blue);
  border-radius: 8px;
  border:0.1em solid var(--primary-blue);
  background-color: var(--background); /* IMPORTANT: Make sure you change this background color to the exact background color of your webpage or the background color of the container in which this input bar is contained. */
  padding: 0 0.5em;
}
.styled_input_bar:not(:focus):not(:placeholder-shown) + .input-label {
  color: grey;
}



textarea {
    resize: none;
    min-height: 100px;
}

.submit-button {
    align-self: flex-start;
    background-color: var(--primary-yellow);
    color: var(--background);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(var(--primary-yellow-rgb, 255, 198, 0), 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
}

.submit-button:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-blue-rgb, 30, 150, 252), 0.4);
}

/* --- Image Container (Right Side) --- */
.contact-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

/* From Uiverse.io by Cksunandh */ 
.m2 {
  position: relative;
  width: 500px; /* Reduced size */
  height: 500px; /* Reduced size */
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  animation: gradient-shift 5s ease-in-out infinite; /* Faster animation */
  background-size: 200% 200%; /* Gradient shift */
}
.m2 img{
    height: 490px;
    width: 98%;
    border-radius: 50px;
    object-fit: fill;
}


.m2::before,
.m2::after {
    border-radius: 50px;
  --size: 5px; /* Reduced glow size */
  content: "";
  position: absolute;
  top: calc(var(--size) / -2);
  left: calc(var(--size) / -2);
  width: calc(100% + var(--size));
  height: calc(100% + var(--size));
  background: radial-gradient(circle at 0 0,var(--primary-blue), transparent),
    radial-gradient(circle at 100% 0, var(--primary-navy), transparent),
    radial-gradient(circle at 0 100%, var(--primary-yellow), transparent),
    radial-gradient(circle at 100% 100%, var(--primary-blue), transparent);
}

.m2::after {
  --size: 2px; /* Reduced inner glow size */
  z-index: -1;
}

.m2::before {
  --size: 10px; /* Reduced outer glow size */
  z-index: -2;
  filter: blur(2vmin); /* Reduced blur */
  animation: blur-animation 3s ease-in-out alternate infinite; /* Faster blur animation */
}

/* Faster blur animation */
@keyframes blur-animation {
  to {
    filter: blur(3vmin);
    transform: scale(1.05);
  }
}

/* Faster gradient animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* --- Animations --- */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScaleUpBlob {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* MODIFIED: Removed @keyframes animateBlob entirely */


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .contact-section {
        gap: 40px;
        padding: 30px;
    }
    .contact-header {
        font-size: 3em;
    }
    .contact-tagline {
        font-size: 1em;
        margin-bottom: 30px;
    }
 
}

@media (max-width: 768px) {
  .m2{
    height: 410px;
  }
  .m2 img{
        height: 400px;
     
    }
    .contact-section {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .contact-form-container {
        width: 100%;
        min-width: auto;
    }
    .contact-header {
        font-size: 2.5em;
    }
    .contact-tagline {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .submit-button {
        width: 100%;
        max-width: none;
    }
  
    .contact-section {
        flex-direction: column;
        padding: 25px;
        gap: 30px;
    }
    .contact-form-container {
        width: 100%;
        min-width: auto;
    }
    .contact-header {
        font-size: 2.5em;
        text-align: center;
    }
    .contact-tagline {
        text-align: center;
        margin-bottom: 25px;
    }
    .submit-button {
        align-self: center;
        width: 100%;
        max-width: 300px;
    }
    .contact-image-container {
        width: 100%;
        min-height: 250px;
    }

}

@media (max-width: 480px) {
    .contact-header {
        font-size: 3em;
    }
    .contact-tagline {
        font-size: 0.9em;
    }
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    .submit-button {
        padding: 12px 30px;
        font-size: 1em;
    }
  
}


.heading {
  font-size: 20px;
  text-transform: capitalize;
  font-weight: 700;
}




/* --- Contact Methods Section --- */
.contact-methods-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 25px;
    position: relative;
    z-index: 5;
}

.section-title {
    font-size: 2.5em;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 columns on desktop */
    gap: 30px;
}

.method-card {
  
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* MODIFIED: Align items to the start (left) */
    text-align: left; /* MODIFIED: Align text to the left */
    padding: 30px 20px; /* Increased horizontal padding slightly for better alignment */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    min-height: 280px; /* Ensure consistent card height */
border-radius: 50px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
}

/* Specific card colors */
.phone-card {
    color: var(--primary-blue);
    animation-delay: 0.4s;
}
.live-chat-card {
 
    color: var(--primary-yellow);
    animation-delay: 0.5s;
}
.email-card {

    color: var(--primary-navy);
    animation-delay: 0.6s;
}

.method-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.method-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: inherit;
}
.phone-card .method-icon { color: var(--primary-blue); }
.live-chat-card .method-icon { color: var(--primary-yellow); }
.email-card .method-icon { color: var(--primary-navy); }


.method-header {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
    color: inherit;
}

.method-description {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    color: inherit;
    /* Removed max-width here, let card width handle it for better responsiveness */
}

.method-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    color: inherit;
    border: 2px solid;
}
/* Link specific colors */
.phone-card .method-link { border-color: var(--primary-blue); }
.live-chat-card .method-link { border-color: var(--primary-yellow); }
.email-card .method-link { border-color: var(--primary-navy); }

.method-link:hover {
    transform: translateY(-2px);
}
.phone-card .method-link:hover { background-color: var(--primary-blue); color: var(--background); }
.live-chat-card .method-link:hover { background-color: var(--primary-yellow); color: var(--background); }
.email-card .method-link:hover { background-color: var(--primary-navy); color:var(--background); }


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {

    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust for tablets (2 columns) */
        gap: 25px;
    }
    .method-card {
        min-height: 260px;
        padding: 25px 15px;
    }
    .method-icon { font-size: 2.5em; }
    .method-header { font-size: 1.6em; }
}

@media (max-width: 767px) {
 
 
    .methods-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .method-card {
        min-height: auto;
        padding: 20px 15px;
        align-items: center; /* MODIFIED: Center align on mobile for single column */
        text-align: center; /* MODIFIED: Center text on mobile */
    }
    .method-icon { font-size: 2.2em; }
    .method-header { font-size: 1.4em; }
    .method-description { font-size: 0.9em; }
    .method-link { font-size: 0.85em; }
}

/* --- Location Section --- */
.location-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 40px;
     border-radius: 16px;
     display: flex;
    flex-direction: row; /* Default to row on desktop */
    align-items: center;
    gap: 60px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.location-details-container {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the start (left) */
    text-align: left; /* Align text to the left */
}

.location-header {
    font-size: 2.5em;
    color: var(--primary-yellow);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}

.address-card {
    background-color: var(--background);
    border-left: 5px solid var(--primary-blue); /* Left border */
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.city-name {
    font-size: 1.2em;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-weight: 600;
}

.street-address {
    font-size: 1.1em;
    color: var(--primary-blue);
    line-height: 1.5;
    margin-bottom: 20px;
}

.view-map-button {
    display: inline-block;
    border: 3px solid var(--primary-blue);
    background-color: var(--background);
    color: var(--primary-blue);
   
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.view-map-button:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-blue-rgb, 30, 150, 252), 0.4);
}

/* Map Container */
.map-container {
    flex: 1;
    display: flex; /* Keep flex for centering iframe and overlay */
    justify-content: center;
    align-items: center;
    min-height: 300px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--primary-navy);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;

    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScaleUpMap 1s ease-out forwards;
    animation-delay: 0.4s;
}

.map-container:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

/* Interactive Map iframe */
.map-container iframe { /* Targeting the iframe directly */
    width: 100%;
    height: 100%;
    min-height: 300px; /* Ensure map iframe has height */
    border: none; /* Remove default iframe border */
    display: block; /* Ensure it behaves as a block element */
    /* Position absolute to allow overlay to cover without disrupting flow */
    position: absolute;
    top: 0;
    left: 0;
}

/* Map Overlay */
.map-link-overlay { /* Renamed from .map-overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2; /* Place it above the iframe (iframe has implicit z-index: 1) */
}

.map-link-overlay span {
    padding: 10px 20px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    background-color: rgba(255, 255, 255, 0.1);
}

.map-container:hover .map-link-overlay {
    opacity: 1;
}

/* Keyframes for Map Entry Animation */
@keyframes fadeInScaleUpMap {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .contact-section {
        gap: 40px;
        padding: 30px;
    }
    .contact-header {
        font-size: 3em;
    }
    .contact-tagline {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .image-glow-frame {
        max-width: 350px;
        height: 300px;
    }
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .method-card {
        min-height: 260px;
        padding: 25px 15px;
    }
    .method-icon { font-size: 2.5em; }
    .method-header { font-size: 1.6em; }

    /* Location Section */
    .location-section {
        gap: 40px;
        padding: 30px;
    }
    .location-header {
        font-size: 3em;
    }
    .address-card {
        padding: 20px;
    }
    .city-name { font-size: 1.6em; }
    .street-address { font-size: 1em; }
    .view-map-button { padding: 10px 25px; font-size: 0.95em; }
    .map-container {
        min-height: 250px;
    }
    .map-link-overlay { font-size: 1.3em; }
}

@media (max-width: 767px) {
    .contact-section {
        flex-direction: column;
        padding: 25px;
        gap: 30px;
    }
    .contact-form-container {
        width: 100%;
        min-width: auto;
    }
    .contact-header {
        font-size: 2.5em;
        text-align: center;
    }
    .contact-tagline {
        text-align: center;
        margin-bottom: 25px;
    }
    .submit-button {
        align-self: center;
        width: 100%;
        max-width: 300px;
    }
    .contact-image-container {
        width: 100%;
        min-height: 250px;
    }
    .image-glow-frame {
        width: 80%;
        height: 250px;
    }
    .methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .method-card {
        min-height: auto;
        padding: 20px 15px;
        align-items: center;
        text-align: center;
    }
    .method-icon { font-size: 2.2em; }
    .method-header { font-size: 1.4em; }
    .method-description { font-size: 0.9em; }
    .method-link { font-size: 0.85em; }

    /* Location Section */
    .location-section {
        flex-direction: column;
        padding: 25px;
        gap: 30px;
    }
    .location-details-container {
        width: 100%;
        min-width: auto;
        align-items: center;
        text-align: center;
    }
    .location-header {
        font-size: 2.5em;
    }
    .address-card {
        width: 100%;
        max-width: 350px;
    }
    .map-container {
        width: 100%;
        min-height: 200px;
    }
    .map-link-overlay { font-size: 1.1em; }
}

@media (max-width: 480px) {
    .contact-header {
        font-size: 2em;
    }
    .contact-tagline {
        font-size: 0.9em;
    }
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    .submit-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .image-glow-frame {
        width: 90%;
        height: 200px;
    }
    /* Location Section */
    .location-header {
        font-size: 2em;
    }
    .city-name { font-size: 1.6em; }
    .street-address { font-size: 1em; }
    .view-map-button { padding: 10px 20px; font-size: 0.9em; }
}