:root {
    /* ==========================
       THEME COLORS & VARIABLES
       ========================== */
    --color-red-primary: #e10a09;
    /* (Red Primary/Dark) */
    --color-orange-secondary: #fb8101;
    /* (Orange Secondary) */
    --color-white: #FFFFFF;
    --color-dark-text: #0D0D0D;
    /* (Dark Text) */
    --color-grey-body: #718096;
    /* For body copy/subtle text */

    /* GLOBAL SPACING */
    --max-content-width: 1200px;
    --max-navbar-width: 1350px;
    --navbar-height: 85px;

    /* MAPPING NEW VARIABLES TO OLD LOGIC */
    --primary: var(--color-red-primary);
    /* New Red */
    --secondary: var(--color-orange-secondary);
    /* New Orange */
    --medium-pink: var(--color-red-primary);
    /* Mapped to Primary Red */
    --light-pink: #FEEBC8;
    /* Mapped to a light orange/peach for subtle backgrounds */
    --primary-light: #FFDFE0;
    /* Mapped to a soft light red for button backgrounds */
    --white: var(--color-white);
    --text-dark: var(--color-dark-text);
    --text-light: #E2E8F0;
    /* Kept light text as grey/white */
    --footer-bg: var(--primary);
    --footer-accent: var(--secondary);
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, rgb(253, 221, 186));
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.contact-page-container {
    margin: 0 60px 0 0;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;

}



/* ==========================================
       CONTACT PAGE - UNIQUE CLASS NAMES
       ========================================== */

.contact-badge-section {
    background: orange;
    width: 90%;
    max-width: 450px;
    height: 160px;
    border-bottom-left-radius: 450px;
    border-bottom-right-radius: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.contact-badge-h1 {
    color: white;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.3;
    text-align: center;
    
}

.contact-form-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -80px;
    padding-bottom: 0;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 8;
    width: 100%;
}

.contact-form-container {
    background: linear-gradient(135deg, #eb4873, #6240a2);
    padding: 120px 60px 100px;
    border-radius: 20px;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.contact-form-group {
    margin-bottom: 25px;
}

.contact-form-group label {
    display: block;
    color: white;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: 2px solid white;
    background: white;
}

.contact-form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Clinic Selection Cards */
.contact-clinic-selection {
    margin-bottom: 25px;
}

.contact-clinic-selection>label {
    display: block;
    color: white;
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-clinic-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-clinic-card {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-clinic-card:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-clinic-card.selected {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    border-width: 3px;
}

.contact-clinic-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-clinic-card-icon {
    font-size: 40px;
    color: white;
    margin-bottom: 15px;
}

.contact-clinic-card-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.contact-clinic-card-address {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.contact-clinic-card-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-clinic-card.selected .contact-clinic-card-check {
    opacity: 1;
}

.contact-clinic-card-check i {
    color: #6240a2;
    font-size: 14px;
}

/* Submit Button */
.contact-submit-btn {
    width: 100%;
    padding: 14px 30px;
    background: #ff5a7e;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background: #ff3d61;
    transform: translateY(-2px);
}

.contact-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Alert Messages */
.contact-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: none;
    animation: slideIn 0.3s ease;
}

.contact-alert-success {
    background: #4caf50;
    color: white;
}

.contact-alert-error {
    background: #f44336;
    color: white;
}

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

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

/* Bottom Cards Section - Overlapping under form */
.contact-bottom-cards-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 5;
    padding: 20px 20px 50px 20px;
    width: 100%;
    overflow-x: hidden;
}

.contact-bottom-cards {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-card {
    flex: 1;
    background: #e10a09;
    padding: 80px 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.contact-info-card h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    padding: 0;
}

.contact-info-card p,
.contact-info-card a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.8;
    display: block;
    margin: 0;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.contact-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.contact-social-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 22px;
    transition: transform 0.3s, background 0.3s;
}

.contact-social-icon:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Locations Section */
.contact-locations-section {
    margin-top: 60px;
    margin-bottom: 30px;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

.contact-locations-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-locations-header h2 {
    color: #e10a09;
    font-size: 32px;
    letter-spacing: 3px;
    font-weight: bold;
}

.contact-locations-grid {
    display: flex;
    justify-content: center;

    max-width: 1200px;
    margin: 0 auto;
}

.contact-location-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 70%;
}

.contact-map-container {
    width: 100%;
    height: 300px;
    background: #ddd;
    position: relative;
}

.contact-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-location-info {
    padding: 25px;
    color: white;
    text-align: center;
    background: #ffa733;
}

.contact-location-info p {
    line-height: 1.6;
    font-size: 14px;
}

/* ==========================================
       RESPONSIVE MEDIA QUERIES
       ========================================== */

@media (max-width: 992px) {
    .contact-locations-grid {
        grid-template-columns: 1fr;
    }

    .contact-bottom-cards {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-badge-section {
        width: 90%;
        max-width: 320px;
        height: 140px;
        /* margin-top: 10px; */
    }

    .contact-badge-h1 {
        font-size: 24px;
    }

    .contact-form-wrapper {
        margin-top: -60px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .contact-form-container {
        padding: 90px 25px 70px;
        width: 100%;
    }

    .contact-clinic-cards-row {
        grid-template-columns: 1fr;
    }

    .contact-clinic-card {
        padding: 15px;
    }

    .contact-clinic-card-icon {
        font-size: 32px;
    }

    .contact-clinic-card-title {
        font-size: 16px;
    }

    .contact-bottom-cards {
        flex-direction: column;
    }

    .contact-bottom-cards-wrapper {
        margin-top: 20px;
        width: 100%;
        overflow-x: hidden;
    }

    .contact-map-container {
        height: 250px;
    }

    .contact-locations-section {
        width: 100%;
        overflow-x: hidden;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {

    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .contact-page-container {
        overflow-x: hidden !important;
    }

    .contact-badge-section {
        width: 85%;
        max-width: 280px;
    }

    .contact-form-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .contact-form-container {
        padding: 80px 15px 60px;
        width: 100%;
    }

    .contact-clinic-cards-row {
        grid-template-columns: 1fr;
    }

    .contact-locations-header h2 {
        font-size: 24px;
    }

    .contact-bottom-cards-wrapper {
        margin-top: 20px;
        padding: 0 10px 40px 10px;
        width: 100%;
    }

    .contact-info-card {
        padding: 30px 20px;
    }

    .contact-info-card h3 {
        font-size: 16px;
    }

    .contact-info-card p,
    .contact-info-card a {
        font-size: 14px;
    }

    .contact-locations-section {
        padding: 0 10px;
    }
}


.connect-section {
    float: -1;
    margin: 0 auto 20px auto;
    max-width: 600px;
    background: orange;
    padding: 60px 25px 20px 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.connect-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.connect-heading {
    font-size: 32px;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 10px;
}

.connect-heading span {
    color: #fff;
}

.connect-subtext {
    font-size: 1.1rem;
    color: #f8f8f8;
    margin-bottom: 40px;
}

.connect-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    border: solid 0.5px rgb(255, 0, 0);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.connect-btn i {
    font-size: 1.2rem;
}

.connect-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Individual button styles */
.fb-btn {
    background-color: #1877f2;
}

.insta-btn {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.yt-btn {
    background: linear-gradient(120deg, #d60e0e, #d72323, #282828);
    flex-direction: column;
    line-height: 1.2;
}

.yt-btn span {
    font-size: 0.9rem;
    font-weight: 400;
}

.wa-btn {
    background-color: #25d366;
}

.li-btn {
    background-color: #0077b5;
}

/* Responsive */
@media (max-width: 576px) {
    .connect-btn {
        width: 100%;
        max-width: 320px;
    }
}




/* ========== BACK TO TOP & FLOATING ACTION BUTTONS ========== */
.back-to-top-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
}

#backToTopBtn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E88E5;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#backToTopBtn:hover {
    filter: brightness(0.95);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-4px);
}

#backToTopBtn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-social-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    left: auto;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.floating-social-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

/* Individual Social Buttons */
.floating-social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: scale(1);
}

/* Individual Button Colors */
.btn-call {
    background: #1E88E5;
}

.btn-whatsapp {
    background: #25D366;
}

.floating-social-btn[aria-label="instagram"],
.floating-social-btn[data-tooltip="instagram"] {
    background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
    color: #ffffff;
}

.btn-facebook {
    background: #1877F2;
}

.btn-youtube {
    background: #FF0000;
}

/* Hover Effects */
.floating-social-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.floating-social-btn i {
    transition: transform 0.3s ease;
}

.floating-social-btn:hover i {
    transform: rotate(360deg);
}









/* ========================== */
/* RESPONSIVE FOOTER    */
/* ========================== */

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-about {
        flex-direction: column;
            align-items: center;
            text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-section h4 {
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul {
        text-align: center;
    }

    .contact-info-footer {
        align-items: center;
    }

    .contact-item-footer {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .footer-logo h3 {
        font-size: 18px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
    }

    .footer-developed p {
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }
}



.contact-item-footer{
    margin-bottom: -10px;
    margin-top: -7px;
    align-items: center;
}

.top-info{
    justify-content: space-around;
    margin: 0px 188px;
}

.fa-envelope:before{
    margin-right: -1px;
}


.fa-phone:before{
    margin-right: -2px;
}


@media (max-width: 768px) {
    .top-info{
        flex-direction: column;
        margin: 0px;
        gap: 8px;
    }
}


.floating-social-btn .fa-brands{
    color: white;
}


.connect-btn i{
    color: white;
}