/* --- Modern Contact Page Styles --- */

/* Hero Banner for Contact Page (unchanged from previous, but ensure image is relevant) */
.hero-page-banner {
    position: relative;
    width: 100%;
    height: 50vh; /* Shorter than the homepage hero */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
}

.hero-page-banner h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 2;
    animation: fadeIn 1.5s ease-out forwards;
}
@media (max-width: 992px) {
    .hero-page-banner h1 {
    font-size: 2.1rem;
    
    
}

 
}
@media (max-width: 992px) {
    .hero-page-banner {
        height: 40vh;
        background-attachment: scroll;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Contact Section */
.contact-section-modern {
    padding: 80px 5%;
    background-color: var(--light-grey);
}

.contact-container-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Two columns, responsive */
    gap: 40px;
    margin-bottom: 50px;
}

.contact-card-modern {
    background: var(--white-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content in cards */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-card-modern h2 {
    font-size: 2.2rem;
    color: var(--maroon-color);
    margin-bottom: 30px;
    position: relative;
}

.contact-card-modern h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--maroon-color);
    border-radius: 2px;
}

/* Contact Details Card Specifics */
.contact-details .contact-item-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: var(--dark-grey);
    line-height: 1.5;
}

.contact-details .contact-item-modern i {
    font-size: 1.8rem;
    color: var(--maroon-color);
    min-width: 30px; /* Ensures consistent icon alignment */
    text-align: center;
}

.contact-details .contact-item-modern a {
    color: var(--dark-grey);
    transition: color 0.3s ease;
}

.contact-details .contact-item-modern a:hover {
    color: var(--maroon-color);
}

.social-links-modern {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links-modern a {
    color: var(--dark-grey);
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-modern a:hover {
    color: var(--maroon-color);
    transform: translateY(-3px) scale(1.1);
}

/* Contact Form Card Specifics */
.form-modern {
    width: 100%;
}

.form-group-modern {
    margin-bottom: 25px;
}

.form-modern input,
.form-modern textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fcfcfc;
    color: var(--dark-grey);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-modern input::placeholder,
.form-modern textarea::placeholder {
    color: #888;
}

.form-modern input:focus,
.form-modern textarea:focus {
    outline: none;
    border-color: var(--maroon-color);
    box-shadow: 0 0 8px rgba(173, 26, 34, 0.2);
    background-color: var(--white-color);
}

 /* Add this code to the end of your index.css file */
.product-card button.cart-button {
    position: relative;
    padding: 10px;
    width: 200px;
    height: 60px;
    border: 0;
    border-radius: 10px;
    background-color: #4834d4;
    outline: none;
    cursor: pointer;
    color: #fff;
    transition: .3s ease-in-out;
    overflow: hidden;
    font-weight: 600; /* To match your original font-weight */
}

.product-card button.cart-button:hover {
    background-color: #35269b;
    transform: scale(1.05); /* To match your original hover effect */
}

.product-card button.cart-button:active {
    transform: scale(.9);
}

.product-card .cart-button .fa-shopping-cart {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: -10%;
    font-size: 2em;
    transform: translate(-50%,-50%);
}

.product-card .cart-button .fa-box {
    position: absolute;
    z-index: 3;
    top: -20%;
    left: 52%;
    font-size: 1.2em;
    transform: translate(-50%,-50%);
}

.product-card .cart-button span {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    font-size: 1.2em;
    color: #fff;
    transform: translate(-50%,-50%);
}

.product-card .cart-button span.add-to-cart {
    opacity: 1;
}

.product-card .cart-button span.added {
    opacity: 0;
}

.product-card .cart-button.clicked .fa-shopping-cart {
    animation: cart 1.5s ease-in-out forwards;
}

.product-card .cart-button.clicked .fa-box {
    animation: box 1.5s ease-in-out forwards;
}

.product-card .cart-button.clicked span.add-to-cart {
    animation: txt1 1.5s ease-in-out forwards;
}

.product-card .cart-button.clicked span.added {
    animation: txt2 1.5s ease-in-out forwards;
}

@keyframes cart {
    0% { left: -10%; }
    40%, 60% { left: 50%; }
    100% { left: 110%; }
}

@keyframes box {
    0%, 40% { top: -20%; }
    60% { top: 40%; left: 52%; }
    100% { top: 40%; left: 112%; }
}

@keyframes txt1 {
    0% { opacity: 1; }
    20%, 100% { opacity: 0; }
}

@keyframes txt2 {
    0%, 80% { opacity: 0; }
    100% { opacity: 1; }
}
/* Map Container */
.map-container-modern {
    width: 100%;
    height: 450px; /* Slightly taller map */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0; /* Subtle border for map */
}

.map-container-modern iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive adjustments for modern contact section */
@media (max-width: 992px) {
    .contact-section-modern {
        padding: 60px 5%;
    }

    .contact-container-modern {
        grid-template-columns: 1fr; /* Stack cards vertically on smaller screens */
        gap: 30px;
    }

    .contact-card-modern {
        padding: 30px;
    }

    .contact-card-modern h2 {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .contact-details .contact-item-modern {
        flex-direction: column; /* Stack icon and text on very small screens */
        align-items: center;
        text-align: center;
        gap: 8px;
        margin-bottom: 20px;
    }

    .contact-details .contact-item-modern i {
        margin-bottom: 5px;
    }

    .social-links-modern {
        margin-top: 25px;
    }

    .cta-button-modern {
        font-size: 1rem;
        padding: 12px 30px;
    }

    .map-container-modern {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .contact-card-modern {
        padding: 25px;
    }

    .contact-card-modern h2 {
        font-size: 1.8rem;
    }

    .contact-details .contact-item-modern {
        font-size: 0.95rem;
    }

    .social-links-modern a {
        font-size: 1.8rem;
    }
}/* Modern Call-to-Action Button */
.cta-button-modern {
    display: inline-block; /* Allows padding and width to be applied */
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: var(--maroon-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(173, 26, 34, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button-modern:hover {
    background-color: #a02029; /* A slightly darker maroon */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(173, 26, 34, 0.4);
}

.cta-button-modern:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);





}



 #status-message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
    padding: 0 10px;
}

/* Base style for the message bubble */
.status-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    margin-top: 150px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: normal;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    animation: slideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Success message style */
.sent-message {
    background: #AD1A22;
    color: #ffffff;
}

/* Error message style */
.received-message {
    background: #f0f0f0;
    color: #333333;
    border: 1px solid #AD1A22;
}

/* Icon style */
.status-message .message-icon {
    font-size: 1.8rem;
    margin-right: 12px;
}

/* --- Close button style --- */
  .status-message .close-btn {
    display:none;
   }


.status-message .close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Keyframe animation for sliding from the right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* New keyframe for hiding the message */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Class to trigger the hide animation */
.status-message.hide {
    animation: fadeOut 0.6s ease-in forwards;
}

 
@media (max-width: 600px) {
  /* Adjust the container for smaller screens */
  #status-message-container {
    top: 10px;
    right: 50%; /* Center the container horizontally */
    transform: translateX(50%); /* Pull it back to the left to perfectly center it */
    max-width: 90%; /* Let it take up most of the screen width */
    padding: 0; /* Remove padding from the container */
  }

  /* Adjust the message bubble itself */
  .status-message {
    margin-top: 100px; /* Reduce top margin */
    padding: 12px 20px; /* Adjust padding to make it slightly smaller */
    font-size: 0.9rem; /* Slightly reduce font size */
    width: 100%; /* Make the message fill the container's width */
    box-sizing: border-box; /* Ensure padding is included in the width */
    justify-content: space-between;
  }

  /* Adjust icon size */
  .status-message .message-icon {
    font-size: 1.5rem; /* Make icon a little smaller */
    margin-right: 10px;
  }
}