/* CSS with :has() selectors */
.container:has(.hero-content) {
    max-width: 1400px;
}

.hero-btn-group:has(.btn-white) {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

section:has(+ #about) {
    margin-bottom: 0;
}

.testimonial-card:has(p:contains("Rekha")) {
    border-left: 3px solid var(--accent-color);
}

nav ul li:has(> a:hover) {
    transform: translateY(-2px);
}

/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e67e22;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #444;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
    outline: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    color: var(--accent-color);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: var(--white);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    transition: var(--transition);
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 95px;
    height: 95px;
    border-radius: 5px;
    background-image: url('https://github.com/harmonyca25/harmony-ca-redo/blob/main/img/png/hpcalogo_no_bg.png?raw=true');/*va added it*/
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
/*     border:0.2pt solid */
}

.logo-text {
    display: flex;
    align-items: center;
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    position: relative;
    /* Advanced font features */
    font-feature-settings: "kern", "liga", "calt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo-harmony {
    color: #34495e;
    font-weight: 600;
    position: relative;
    /* Subtle text effect */
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.logo-plan {
    color: #e67e22;
    font-weight: 600;
    /* Subtle transition */
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect with :has() */
.logo:has(:hover) .logo-plan {
    color: #f39c12;
    transform: translateY(-1px);
}

/* Add slight spacing and adjust position */
.logo-harmony::after {
    content: "";
    display: inline-block;
    width: 0.08em;
}

/* Mobile Menu Styles */
.nav-toggle, .nav-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover:after, nav ul li a.active:after {
    width: 100%;
}

/* Hero Section */
.hero {
    height:auto;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('https://raw.githubusercontent.com/harmonyca25/harmony-ca-redo/refs/heads/main/img/webp/ontario-cityscape.webp'); /*i added it*/
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 0;
    position: relative;
    z-index:1;
}

.hero:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    /* Multiple text-shadow approach for better readability */
    text-shadow:
       -1px -1px 0 rgba(0,0,0,0.5),  
        1px -1px 0 rgba(0,0,0,0.5),
       -1px 1px 0 rgba(0,0,0,0.5),
        1px 1px 0 rgba(0,0,0,0.5),
        0 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.hero-btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text .credentials {
    display: inline-block;
    background-color: var(--light-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #e1e1e1;
}

.about-text h2 {
    margin-top: 0;
}

/* Services Section */
.services-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    padding: 2rem 0;
    text-align: center;
    font-size: 2.5rem;
    color: var(--white);
    background-color: var(--primary-color);
}

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 1rem;
}

/* Why Choose Section */
.why-choose {
    background-color: var(--light-color);
}

.why-choose-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    background-color: rgba(230, 126, 34, 0.1);
    height: 80px;
    width: 80px;
    line-height: 80px;
    border-radius: 50%;
}

/* Testimonials Section */
.testimonials-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}

.testimonial-card:before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    color: rgba(230, 126, 34, 0.2);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.testimonial-author {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author:before {
    content: '';
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    display: inline-block;
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://raw.githubusercontent.com/harmonyca25/harmony-ca-redo/refs/heads/main/img/webp/ontario-cityscape.webp') center/cover no-repeat;/*i added it*/
    opacity: 0.1;
    pointer-events: none;
}

.cta h2 {
    color: var(--white);
    text-shadow: 2px 2px 4px black;/*i added it*/
}

.cta h2:after {
    background-color: var(--white);
    left: 50%;
    transform: translateX(-50%);
}

.cta p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px black; /*I added it*/
}

/* Contact Section */
.contact-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    background-color: rgba(44, 62, 80, 0.1);
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-text {
    flex-grow: 1;
}

.contact-text p {
    margin-bottom: 0.3rem;
}

.contact-text a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-container h3 {
    margin-bottom: 1.5rem;
}

.privacy-notice {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #bbb;
    padding: 4rem 0 1rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: #bbb;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-col .social-links {
    margin-top: 1.5rem;
}

.footer-col .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #bbb;
}

.footer-col .social-links a:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.privacy-policy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.privacy-policy h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.privacy-policy h5 {
    color: var(--white);
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    height: 90vh;
    max-height: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.5s;
    overflow: scroll;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    z-index: 2100;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-iframe-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Toast notification */
#toastNotification {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--dark-color);
    color: #e67e22;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 2000;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Change in the mobile view section */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: relative;
        z-index: 1000;
    }
    
    .header-container {
        position: relative;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 4rem 2rem 2rem;
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-close {
        display: none; /* Default state is hidden */
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        color: var(--dark-color);
        cursor: pointer;
    }
    
    nav.active .nav-close {
        display: block; /* Only show when navigation is active */
    }
    .hero {
        padding-top: 60px; /* Adjust for smaller header on mobile */
    }
}


@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .services-grid, 
    .features-grid, 
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

                /* Art Deco Card Grid Styles integrated with HPCA design language added on 17april2025 by vipul Anand */

                /* Art Deco Card Grid Styles integrated with HPCA design language - Font Awesome version */
.art-deco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 30px;
}

.art-deco-card {
    position: relative;
    width: 100%;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.art-deco-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 100;
}

.art-deco-card:hover .card-overlay {
    opacity: 0;
    pointer-events: none;
}

.card-icon {
    background-color: var(--primary-color);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.card-content {
    padding: 20px;
    z-index: 3;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 0;
}

.card-content h2:after {
    display: none;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.interest-button {
    padding: 20px;
    text-align: center;
    z-index: 3;
}

.circle-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    transform: scale(0);
    transition: transform 0.4s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.art-deco-card:hover .circle-button {
    transform: scale(1);
}

.circle-button::before {
    content: "+";
    font-size: 26px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.circle-button:active {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
}

.interest-button p {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    font-family: 'Poppins', sans-serif;
}

.art-deco-card:hover .interest-button p {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .art-deco-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .art-deco-grid {
        grid-template-columns: 1fr;
    }
}



/* form styles*/
/* Modal Form Styles */
.modal-content {
    padding: 20px 30px;
    overflow:scroll;
}

/* Form Styles */
#contact-section {
    font-family: 'Poppins', sans-serif;
}

#contactForm input, 
#contactForm textarea {
    width: 100%; 
    padding: 8px; 
    border: 1px solid #ccc; 
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

#contactForm label {
    display: block; 
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

#contactForm > div {
    margin-bottom: 15px;
}

#contactForm button {
    background-color: #2c3e50; 
    color: white; 
    padding: 10px 15px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

#thankYouMessage {
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

#thankYouMessage button {
    background-color: #2c3e50; 
    color: white; 
    padding: 8px 12px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    margin-top: 15px;
    font-family: 'Poppins', sans-serif;
}

/* Fix consent checkbox alignment */
#contactForm input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

#contactForm label[for="consent"] {
    display: inline;
    vertical-align: middle;
}

/* Animation styles */
@keyframes circle-stroke {
    100% { stroke-dashoffset: 0; }
}
@keyframes check-stroke {
    100% { stroke-dashoffset: 0; }
}
@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 3px #4BB543; }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(75, 181, 67, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(75, 181, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(75, 181, 67, 0); }
}

/* Checkmark animation styles */
.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke: #4BB543;
    stroke-width: 2;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4BB543;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    margin: 0 auto;
}

.checkmark__circle {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    stroke-width: 1;
    stroke-miterlimit: 10;
    stroke: #4BB543;
    animation: circle-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #4BB543;
    stroke-width: 2;
    animation: check-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Highlight classes for form feedback */
.message-highlight {
    animation: pulse 1s;
    border: 2px solid #4BB543 !important;
    transition: all 0.3s ease;
}

.message-error {
    border: 2px solid #FF6347 !important;
    transition: all 0.3s ease;
}

/* Toast notification */
#toastNotification {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: opacity 0.3s;
}
