/* Base Styles & Color Variables */
:root {
    /* Original Colors from Best Event Anchors (Old Colors) */
    --primary-color-old: #120d30;
    --secondary-color-old: #291e62;
    --accent-primary-old: #8a6cff;
    --accent-secondary-old: #c17aff;
    --highlight-old: #ff6b6b;
    /* Distinct accent like the heart icon */
    --text-color-strong-old: #ffffff;
    --text-color-muted-old: rgba(255, 255, 255, 0.85);
    --text-color-very-muted-old: rgba(255, 255, 255, 0.7);

    /* Glass values from Best Event Anchors */
    --glass-bg-base-old: rgba(255, 255, 255, 0.08);
    --glass-border-old: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow-old: 0 8px 32px rgba(0, 0, 0, 0.15);
    --glass-blur-old: 10px;

    /* Header/Footer from Best Event Anchors */
    --header-bg-old: rgba(18, 13, 48, 0.75);
    --header-blur-old: 12px;
    --footer-bg-old: rgba(12, 9, 36, 0.95);

    /* Gradients from Best Event Anchors */
    --gradient-body-old: linear-gradient(135deg, var(--primary-color-old), var(--secondary-color-old));
    --gradient-cta-old: linear-gradient(90deg, var(--accent-primary-old), var(--accent-secondary-old));
    --gradient-title-old: linear-gradient(90deg, var(--text-color-strong-old), var(--accent-primary-old));


    /* --- Adopting Puppies Style Variables with Old Colors --- */
    /* Primary Palette */
    --primary-color: var(--primary-color-old);
    --secondary-color: var(--secondary-color-old);
    --light-color: var(--text-color-strong-old);
    --accent-color: var(--accent-primary-old);
    /* Main interactive accent */
    --highlight: var(--highlight-old);
    /* Secondary, distinct accent */

    /* Text */
    --text-strong: var(--text-color-strong-old);
    --text-muted: var(--text-color-muted-old);
    --text-very-muted: var(--text-color-very-muted-old);

    /* Backgrounds & Surfaces (using old body gradient for main bg) */
    --body-bg-gradient: var(--gradient-body-old);
    --body-bg-image: url('../img/bg/bg_image_paws.png');
    --body-bg-image-blur-overlay: url('../img/bg/bg_image_paws.png');


    /* Glassmorphism (adapted from old, but applied like puppies style) */
    --glass-bg-value: var(--glass-bg-base-old);
    --glass-border: var(--glass-border-old);
    --glass-shadow: var(--glass-shadow-old);
    --glass-blur: var(--glass-blur-old);

    /* Specific Component Backgrounds (derived or from old) */
    --header-bg: var(--header-bg-old);
    --header-blur: var(--header-blur-old);
    --footer-bg: var(--footer-bg-old);
    --footer-blur: 15px;

    --card-glass-bg: rgba(255, 255, 255, 0.06);
    --card-glass-bg-hover: rgba(255, 255, 255, 0.1);
    --card-border: var(--glass-border-old);

    --accordion-btn-bg: rgba(138, 108, 255, 0.1);
    --accordion-btn-bg-hover: rgba(138, 108, 255, 0.15);
    --accordion-btn-bg-open: rgba(138, 108, 255, 0.2);
    --accordion-body-bg: rgba(138, 108, 255, 0.05);

    --modal-glass-bg: rgba(29, 22, 78, 0.95);
    --modal-glass-blur: 10px;
    --modal-glass-border: 1px solid rgba(255, 255, 255, 0.25);
    --modal-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

    --mobile-menu-glass-bg: rgba(18, 13, 48, 0.98);
    /* Default for mobile nav dropdown */
    --mobile-menu-glass-blur: var(--header-blur-old);

    /* Mobile Bottom Bar Glass Effect */
    --mobile-bottom-bar-bg: rgba(18, 13, 48, 0.85);
    /* Slightly different from dropdown for distinction if needed */
    --mobile-bottom-bar-blur: 10px;


    /* Buttons & CTAs (using old gradient style) */
    --cta-gradient: var(--gradient-cta-old);
    --cta-text-color: var(--text-color-strong-old);
    --cta-shadow: 0 8px 25px rgba(138, 108, 255, 0.3);
    --cta-hover-shadow: 0 12px 30px rgba(138, 108, 255, 0.5);

    --btn-custom-bg: var(--gradient-cta-old);
    --btn-custom-text-color: var(--text-color-strong-old);
    --btn-custom-hover-bg: linear-gradient(90deg, var(--accent-secondary-old), var(--accent-primary-old));
    --btn-custom-shadow: var(--cta-shadow);

    /* Pulse/Highlight colors for animations (using old accent) */
    --pulse-color-rgb: 138, 108, 255;
    --original-pulse-color-rgb: 255, 107, 107;
    --accent-primary-old-rgb: 138, 108, 255;


    /* Font Family (from puppies style) */
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-family-base: var(--font-family-sans-serif);
}

/* Reset and Base Styles from puppies-style.css */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-family-base);
    background-image: var(--body-bg-gradient);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: clip;
    line-height: 1.7;
    color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    position: relative;
    z-index: 1;
}

/* Sections */
section {
    position: relative;
    overflow: visible;
    background-color: transparent;
    padding: 2rem 0;
    /* Further reduced section padding */
}

.glass-container-wrapper {
    border-radius: 20px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 0.25rem;
    /* Slightly reduced padding around the glass */
    margin-bottom: 1rem;
    /* Further reduced margin */
}

/* Glassmorphism Base */
.glass {
    background: var(--glass-bg-value);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 15px;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 1.75rem;
    /* Default padding for larger screens, slightly reduced */
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.glass>* {
    position: relative;
    z-index: 1;
}

/* Header & Navigation */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(var(--header-blur));
    backdrop-filter: blur(var(--header-blur));
    border-bottom: 1px solid var(--glass-border-old);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar-wrapper.scrolled {
    background: rgba(18, 13, 48, 0.9);
    padding-top: 5px;
    padding-bottom: 5px;
}


.navbar {
    padding: 0.75rem 0;
    margin: 0 auto;
    max-width: 1140px;
    background: none !important;
    border: none;
    box-shadow: none;
}

.navbar>.container-fluid,
.navbar>.container {
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand .logo-icon {
    color: var(--accent-color);
    font-size: 1.6rem;
}

.navbar-brand .logo-text-accent {
    color: var(--accent-color);
}


.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
    margin: 0 0.4rem;
    position: relative;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-strong) !important;
}

.navbar-nav .nav-link.active {
    padding-left: 1.8rem;
    padding-right: 1.8rem;
}


.navbar .btn-custom-nav {
    background: var(--btn-custom-bg);
    color: var(--btn-custom-text-color) !important;
    padding: 0.8rem 1.9rem !important;
    border-radius: 50px !important;
    font-weight: 600;
    box-shadow: var(--btn-custom-shadow);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 0.6rem;
}

.navbar .btn-custom-nav:hover {
    background: var(--btn-custom-hover-bg);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 25px rgba(138, 108, 255, 0.4);
}

.navbar .btn-custom-nav i {
    font-size: 0.9em;
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.4) !important;
        margin-right: 15px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        z-index: 1001;
        background: var(--mobile-menu-glass-bg);
        -webkit-backdrop-filter: blur(var(--mobile-menu-glass-blur));
        backdrop-filter: blur(var(--mobile-menu-glass-blur));
        border-radius: 12px;
        border: 1px solid var(--glass-border-old);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0.25rem;
        text-align: left !important;
        width: 100%;
    }

    .navbar-nav .nav-link.active {
        padding-left: 1rem;
        padding-right: 1rem;
    }


    .navbar-nav {
        align-items: flex-start !important;
        width: 100%;
    }

    .navbar .btn-custom-nav {
        width: 100%;
        margin-top: 0.75rem;
        margin-left: 0;
        justify-content: center;
    }
}

/* General Button Styles */
.btn-custom {
    background: var(--btn-custom-bg);
    color: var(--btn-custom-text-color);
    border: none;
    box-shadow: var(--btn-custom-shadow);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-custom:hover {
    background: var(--btn-custom-hover-bg);
    transform: translateY(-4px) scale(1.03);
    -webkit-transform: translateY(-4px) scale(1.03);
    color: var(--btn-custom-text-color);
    box-shadow: 0 8px 20px rgba(138, 108, 255, 0.4);
}

.btn-custom:active {
    transform: translateY(-1px);
    -webkit-transform: translateY(-1px);
}

.btn-custom:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    box-shadow: none;
    transform: none;
    -webkit-transform: none;
}

.btn-custom i {
    font-size: 0.9em;
}

.btn-secondary-custom {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-strong) !important;
    padding: 0.7rem 1.7rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-custom:hover {
    border-color: var(--accent-color);
    background: rgba(138, 108, 255, 0.15);
    color: var(--text-strong) !important;
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
}

.btn-secondary-custom i {
    font-size: 0.9em;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--secondary-color-old);
}

@media (min-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 0;
    }
}


.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    -webkit-transition: opacity 1.2s ease-in-out;
    filter: brightness(0.7);
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    border-radius: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-hero-text {
    background: rgba(18, 13, 48, 0.65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 1rem;
    /* Further reduced padding for mobile */
    display: inline-block;
    max-width: 95%;
    /* Allow slightly more width on mobile */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}


.hero h1,
.hero-text h1 {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    /* Adjusted for mobile */
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    color: var(--text-strong);
    font-weight: 700;
}

.hero p,
.hero-text p {
    font-size: clamp(0.9rem, 2.2vw, 1.15rem);
    /* Adjusted for mobile */
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero .button-group,
.hero .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    /* Reduced gap for mobile */
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .glass-hero-text {
        padding: 2rem;
        max-width: 70%;
    }

    .hero h1,
    .hero-text h1 {
        font-size: clamp(2.2rem, 5.5vw, 3.8rem);
        margin-bottom: 1rem;
        line-height: 1.25;
    }

    .hero p,
    .hero-text p {
        font-size: clamp(1.1rem, 3vw, 1.4rem);
        margin-bottom: 2rem;
        max-width: 700px;
    }

    .hero .button-group,
    .hero .hero-buttons {
        gap: 1.2rem;
    }
}


/* Section Titles */
.section-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.section-title-container.text-start {
    justify-content: flex-start;
}

.section-title-container h2,
.section-title-container h1,
.section-title-container h3 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: inherit;
    margin: 0;
    color: var(--text-strong);
    font-weight: 700;
}

.section-title-container .paw-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.9;
}

.section-subtitle-custom {
    display: block;
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 600;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle-custom.text-start {
    text-align: left;
    margin-left: 0;
}


/* Card Styles */
.card-custom-style {
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card-glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border: var(--card-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 1.5rem;
}

.card-custom-style:hover {
    transform: translateY(-8px);
    -webkit-transform: translateY(-8px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
    background: var(--card-glass-bg-hover);
}

.card-img-top-custom {
    height: auto;
    width: 100%;
    display: block;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.card-img-top-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    -webkit-transition: transform 0.5s ease;
}

.card-custom-style:hover .card-img-top-custom img {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
}

.card-body-custom {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title-custom {
    margin-bottom: 0.75rem;
    color: var(--text-strong);
    font-size: 1.4rem;
    font-weight: 600;
}

.card-text-custom {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-list-custom {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-list-custom li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.card-list-custom li i {
    margin-right: 0.6rem;
    color: var(--accent-color);
    font-size: 0.9rem;
    width: 1.1em;
    text-align: center;
}

.card-list-custom li strong {
    color: var(--text-strong);
    font-weight: 500;
    margin-left: 0.25rem;
}

.card-button-custom {
    width: 100%;
    margin-top: auto;
}

/* Gallery Item Simple Style */
.gallery-item-simple {
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    position: relative;
    padding-top: 75%;
}

.gallery-item-simple:hover {
    transform: scale(1.03);
    -webkit-transform: scale(1.03);
}

.gallery-item-simple img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Footer */
footer {
    padding: 2.5rem 0 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    background-color: var(--footer-bg);
    border-top: 1px solid var(--glass-border-old);
}

.footer-box-custom {
    background: var(--card-glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border: var(--card-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 1.25rem;
    /* Default padding, slightly reduced */
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    height: 100%;
    color: var(--text-muted);
}

.footer-box-custom:hover {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.footer-box-custom h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-box-custom h3 i {
    color: var(--accent-color);
    font-size: 1rem;
}

.footer-logo-custom img {
    max-width: 180px;
    margin-bottom: 1rem;
}

.footer-about-custom p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links-custom,
.footer-contact-custom {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-links-custom li,
.footer-contact-custom li {
    margin-bottom: 0.75rem;
}

.footer-links-custom a,
.footer-contact-custom li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    display: inline-block;
    word-break: break-all;
    /* For long email addresses */
}

.footer-contact-custom li>div {
    color: var(--text-muted);
    word-break: break-all;
    /* Ensure text within div also wraps */
}


.footer-contact-custom li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.footer-contact-custom li i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 0.2em;
    flex-shrink: 0;
    width: 1.2em;
    text-align: center;
}

.footer-contact-custom li div {
    line-height: 1.5;
    flex-grow: 1;
    overflow-wrap: break-word;
    /* More robust word breaking */
    word-wrap: break-word;
    /* Legacy support */
}

.footer-links-custom a:hover,
.footer-contact-custom li a:hover {
    color: var(--text-strong);
    transform: translateX(4px);
    -webkit-transform: translateX(4px);
}

.footer-social-links-custom {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 0.85rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.footer-social-links-custom li a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-strong);
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-social-links-custom li a:hover {
    background: var(--accent-color);
    color: var(--text-strong);
    transform: translateY(-3px) scale(1.1);
    -webkit-transform: translateY(-3px) scale(1.1);
}

.footer-brand-item {
    margin-bottom: 0.5rem;
}

.footer-brand-item img {
    display: block;
    width: auto;
    min-height: 50px;
    max-height: 60px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 5px;
    margin: 0 auto 10px auto;
}


.copyright-custom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-very-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.copyright-custom a {
    color: var(--accent-color);
    transition: color 0.3s;
    -webkit-transition: color 0.3s;
}

.copyright-custom a:hover {
    color: var(--highlight);
}

.copyright-custom i.fa-heart {
    color: var(--highlight);
    animation: heartbeat 1.5s infinite;
    -webkit-animation: heartbeat 1.5s infinite;
}

/* Form Control Styling */
.form-control-custom {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-strong) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 10px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    -webkit-transition: border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    width: 100%;
    font-size: 0.95rem;
}

.form-control-custom::placeholder {
    color: var(--text-very-muted) !important;
    opacity: 0.8;
}

.form-control-custom:focus {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(138, 108, 255, 0.25) !important;
    color: var(--text-strong) !important;
    outline: none;
}

.form-control-custom[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: calc(1.5em + 1.5rem + 2px);
}

.form-control-custom[type="date"]::placeholder {
    color: var(--text-very-muted) !important;
    opacity: 0.8;
}

.form-control-custom[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}


textarea.form-control-custom {
    min-height: 120px;
    resize: vertical;
}

@media (min-width: 768px) {

    .modal-custom-style .form-control-custom,
    .modal-custom-style .form-select {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
        font-size: 0.9rem;
    }

    .modal-custom-style textarea.form-control-custom {
        min-height: 90px;
    }

    .modal-custom-style .form-control-custom[type="date"] {
        min-height: calc(1.5em + 1.2rem + 2px);
    }
}


.form-label-custom {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-check-input-custom {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-check-input-custom:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-label-custom {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.validation-error {
    display: block;
    color: #ffbaba;
    font-size: 0.85em;
    margin-top: 0.25rem;
    min-height: 1em;
}

.form-status-message {
    display: none;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    animation: fadeInStatus 0.3s ease-in-out;
    -webkit-animation: fadeInStatus 0.3s ease-in-out;
    text-align: center;
}

.form-status-message.d-block {
    display: block !important;
}

.form-status-sending {
    color: #e0f2f1;
    background-color: rgba(var(--accent-primary-old-rgb, 138, 108, 255), 0.2);
    border-color: rgba(var(--accent-primary-old-rgb, 138, 108, 255), 0.4);
}

.form-status-success {
    color: #d4edda;
    background-color: rgba(21, 157, 53, 0.2);
    border-color: rgba(21, 157, 53, 0.4);
}

.form-status-error {
    color: #f8d7da;
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
}

.form-status-success::before {
    content: "✓ ";
    font-weight: bold;
}

.form-status-error::before {
    content: "⚠ ";
    font-weight: bold;
}

.form-status-sending::before {
    content: "⏳ ";
    font-weight: bold;
}

@keyframes fadeInStatus {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes fadeInStatus {
    from {
        opacity: 0;
        -webkit-transform: translateY(-10px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}


.form-control-custom.is-invalid {
    border-color: #dc3545 !important;
}


/* Modal Styles */
.modal-custom-style .modal-dialog {}

.modal-custom-style .modal-content {
    background: var(--modal-glass-bg);
    -webkit-backdrop-filter: blur(var(--modal-glass-blur));
    backdrop-filter: blur(var(--modal-glass-blur));
    border: var(--modal-glass-border);
    border-radius: 15px;
    box-shadow: var(--modal-shadow);
    color: var(--light-color);
    overflow: hidden;
}

.modal-custom-style .modal-header {
    color: var(--light-color);
    border-bottom: 1px solid var(--modal-glass-border);
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 0 0;
}

.modal-custom-style .modal-title {
    font-size: 1.25rem;
    /* Slightly reduced for better fit */
    font-weight: 600;
    color: var(--accent-secondary-old);
}

.modal-custom-style .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
    -webkit-transition: opacity 0.2s ease-in-out;
}

.modal-custom-style .btn-close:hover {
    opacity: 1;
}

.modal-custom-style .modal-body {
    padding: 1.5rem;
}

.modal-custom-style #bookNowModalForm .btn-wrapper.text-center .btn-custom {
    width: auto;
    min-width: 180px;
}


/* Scroll-to-top & Floating Call Button */
.scroll-to-top-custom {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--text-strong);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    z-index: 1049;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

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

.scroll-to-top-custom:hover {
    background-color: var(--accent-secondary-old);
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

.floating-call-button-custom {
    position: fixed;
    bottom: 30px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: var(--highlight);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-original-custom 2s infinite;
    -webkit-animation: pulse-original-custom 2s infinite;
}

.floating-call-button-custom:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
}

@keyframes pulse-original-custom {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--original-pulse-color-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(var(--original-pulse-color-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--original-pulse-color-rgb), 0);
    }
}

@-webkit-keyframes pulse-original-custom {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--original-pulse-color-rgb), 0.7);
        -webkit-box-shadow: 0 0 0 0 rgba(var(--original-pulse-color-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(var(--original-pulse-color-rgb), 0);
        -webkit-box-shadow: 0 0 0 15px rgba(var(--original-pulse-color-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--original-pulse-color-rgb), 0);
        -webkit-box-shadow: 0 0 0 0 rgba(var(--original-pulse-color-rgb), 0);
    }
}


/* Mobile Footer CTA Bar */
.mobile-footer-cta-custom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--mobile-bottom-bar-bg);
    /* Using new variable */
    -webkit-backdrop-filter: blur(var(--mobile-bottom-bar-blur));
    /* Using new variable */
    backdrop-filter: blur(var(--mobile-bottom-bar-blur));
    /* Using new variable */
    color: var(--light-color);
    font-weight: 500;
    border-top: 1px solid var(--glass-border-old);
    z-index: 1055;
    display: flex;
    justify-content: space-evenly;
    padding: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.mobile-footer-cta-custom a {
    color: inherit;
    text-decoration: none;
    padding: 12px 10px;
    text-align: center;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    transition: background-color 0.3s ease;
    -webkit-transition: background-color 0.3s ease;
}

.mobile-footer-cta-custom a:hover {
    background-color: rgba(var(--pulse-color-rgb), 0.2);
}

.mobile-footer-cta-custom a:not(:first-child) {
    border-left: 1px solid var(--glass-border-old);
}

.mobile-footer-cta-custom a i {
    font-size: 1.1em;
}

@media screen and (min-width: 768px) {
    .mobile-footer-cta-custom {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .scroll-to-top-custom {
        bottom: 75px;
    }

    .floating-call-button-custom {
        display: none !important;
    }

    .modal-custom-style #bookNowModalForm .row>[class*="col-md-"] {
        flex-basis: 100%;
        max-width: 100%;
    }

    .glass {
        padding: 1rem;
        /* Further reduced padding for .glass on mobile */
    }

    .footer-box-custom {
        padding: 1rem;
        /* Further reduced padding for footer boxes on mobile */
    }

    .glass-hero-text {
        padding: 0.75rem;
        /* Further reduced padding for hero text glass on mobile */
        max-width: 95%;
    }

    .hero h1,
    .hero-text h1 {
        font-size: clamp(1.6rem, 4vw, 2.8rem);
        /* Even smaller for mobile hero title */
    }

    .hero p,
    .hero-text p {
        font-size: clamp(0.85rem, 2vw, 1.1rem);
        /* Even smaller for mobile hero p */
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes heartbeat {

    0%,
    70% {
        transform: scale(1);
    }

    14%,
    42% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }
}

@-webkit-keyframes heartbeat {

    0%,
    70% {
        -webkit-transform: scale(1);
    }

    14%,
    42% {
        -webkit-transform: scale(1.3);
    }

    28% {
        -webkit-transform: scale(1);
    }
}


.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    -webkit-transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    -webkit-transition: opacity 0.6s ease-out, -webkit-transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

/* Service Page Specific Tab Styling */
.service-tabs-nav .nav-link {
    padding: 0.75rem 1.25rem !important;
    color: var(--text-muted) !important;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.service-tabs-nav .nav-link:hover {
    background-color: rgba(var(--pulse-color-rgb), 0.15);
    color: var(--text-strong) !important;
}

.service-tabs-nav .nav-link.active {
    background-color: var(--accent-color) !important;
    color: var(--text-strong) !important;
    box-shadow: 0 4px 15px rgba(var(--pulse-color-rgb), 0.3);
}

/* Contact Page - Direct Contact Details */
.contact-details-block {}

.contact-details-block h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-details-block h3 i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.contact-details-block .footer-contact-custom {}

.contact-details-block .footer-contact-custom li {
    margin-bottom: 1rem;
}

.contact-details-block .footer-contact-custom li i {
    font-size: 1.2rem;
    margin-top: 0.1em;
}

.contact-details-block .footer-contact-custom li div strong {
    display: block;
    color: var(--text-strong);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* Email overflow fix in contact details */
.contact-details-block .footer-contact-custom li div a[href^="mailto:"] {
    word-break: break-all;
    overflow-wrap: break-word;
}


/* Fallbacks for no backdrop-filter support */
@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    body {
        background-image: var(--body-bg-gradient) !important;
        background-color: var(--primary-color) !important;
    }

    body::before {
        content: none !important;
    }

    .navbar-wrapper {
        background: rgba(18, 13, 48, 0.95) !important;
    }

    .footer-box-custom {
        background: rgba(12, 9, 36, 0.9) !important;
    }

    .glass {
        background: rgba(41, 30, 98, 0.9) !important;
    }

    .glass-hero-text {
        background: rgba(18, 13, 48, 0.8) !important;
    }

    .mobile-footer-cta-custom {
        background-color: var(--mobile-menu-glass-bg) !important;
        /* Fallback for mobile bar */
    }

    .navbar-collapse {
        background: rgba(18, 13, 48, 0.97) !important;
    }

    .card-custom-style {
        background: rgba(41, 30, 98, 0.85) !important;
    }

    .accordion-button,
    .accordion-body {
        background: rgba(41, 30, 98, 0.8) !important;
    }

    .modal-custom-style .modal-content {
        background: rgba(29, 22, 78, 0.98) !important;
    }

    .service-tabs-nav {
        background: rgba(18, 13, 48, 0.95) !important;
    }
}

/* Accessibility focus indicators */
*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(var(--accent-primary-old-rgb), 0.5);
}