/* =================================
   CONTACT PAGE STYLES — contact.css
   Only loaded on page-contact-us.php.
================================= */

/* ─── BREADCRUMB + PAGE HEADER ─── */
.page-header {
    background: var(--bg-light);
    padding: 36px 0 0;
}

.breadcrumb {
    font-size: 13px;
    margin-bottom: 8px;
}

.breadcrumb .home {
    color: var(--muted);
}

.breadcrumb .sep {
    color: #aaa;
    margin: 0 6px;
}

.breadcrumb .current {
    color: var(--pink);
}

.page-title {
    font-family: var(--ff-heading);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--dark);
}

/* ─── CONTACT CARD ─── */
.contact-section {
    background: var(--bg-light);
    padding: 32px 0 80px;
}

.contact-page-main .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

@media (max-width: 768px) {
    .contact-page-main .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

.contact-box {
    display: flex;
    overflow: hidden;
    background: white;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    min-height: 520px;
}

.contact-left {
    width: 35%;
    background: var(--pink);
    color: white;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.contact-left h2 {
    font-family: var(--ff-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.contact-left p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.contact-info-item .icon {
    margin-top: 2px;
    min-width: 20px;
}

.contact-info-item .text {
    font-size: 14px;
    line-height: 1.6;
}

.contact-info-item .text a {
    color: white;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 44px;
    position: relative;
    z-index: 2;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    cursor: pointer;
    transition: background .2s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, .3);
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
}

.bg-circle.c1 {
    width: 320px;
    height: 320px;
    bottom: -110px;
    right: -110px;
    background: rgba(0, 0, 0, .12);
}

.bg-circle.c2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    right: -60px;
    background: rgba(255, 255, 255, 0.07);
}

/* ─── FORM SIDE ─── */
.contact-right {
    width: 65%;
    padding: 40px 56px;
}

.contact-right h2 {
    font-family: var(--ff-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 12.5px;
    color: #333;
    font-weight: 600;
}

.form-input,
.form-textarea {
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--ff-body);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    color: var(--dark);
    background: #fff;
    width: 100%;
}

.form-input {
    height: 44px;
}

.form-textarea {
    height: 110px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 108, 183, .1);
}

.form-input.error,
.form-textarea.error {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #bbb;
}

.error-msg {
    font-size: 11px;
    color: #e53935;
    margin-top: 2px;
    display: none;
}

.error-msg.show {
    display: block;
}

.submit-btn {
    background: var(--pink);
    color: white;
    padding: 11px 32px;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    float: right;
    margin-top: 12px;
    font-family: var(--ff-body);
    transition: background .2s, transform .1s;
}

.submit-btn:hover {
    background: #991549;
}

.submit-btn:active {
    transform: scale(.98);
}

.submit-btn.loading {
    opacity: .7;
    pointer-events: none;
}

.success-msg {
    display: none;
    background: #eafaf1;
    border: 1px solid #a3e4c1;
    color: #1a7a45;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
    align-items: center;
    gap: 10px;
}

.success-msg.show {
    display: flex;
}

/* ─── MAP ─── */
.map-section {
    width: 100%;
    height: 500px;
    background: #e9ecef;
    overflow: hidden;
    position: relative;
    padding: 0;
    margin: 0;
    line-height: 0;
    font-size: 0;
    display: block;
}

/* Force inner-container to not constrain map width */
.map-section>.wp-block-group__inner-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
    font-size: 0;
    display: block;
    height: 100%;
}

.map-section iframe {
    width: 100%;
    height: 500px;
    border: 0;
    display: block;
}

.map-card {
    position: absolute;
    top: 20px;
    left: 40px;
    background: white;
    padding: 16px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    width: 270px;
    z-index: 5;
}

.map-card h3 {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
    font-family: var(--ff-heading);
}

.map-card p {
    font-size: 11.5px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.map-card .rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
}

.map-card .rating .val {
    font-weight: 700;
}

.map-card .rating .count {
    color: var(--blue);
}

/* ─── TESTIMONIALS (Carousel specific to contact page) ─── */
.test-section {
    padding: 64px 0;
    background: #fafafa;
}

.test-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
}

.test-section h2 {
    font-family: var(--ff-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.test-section p {
    font-size: 14.5px;
    color: var(--muted);
}

.test-section p span {
    color: var(--blue);
    font-weight: 600;
}

.carousel-nav {
    display: flex;
    gap: 8px;
}

.carousel-nav .arrow-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: opacity .2s, background .2s;
    border: none;
    background: var(--pink);
    color: white;
}

.carousel-nav .arrow-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.test-card {
    background: white;
    padding: 30px 28px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 0 0 calc((100% - 48px) / 3);
}

.quote-top {
    color: #e8e8e8;
    margin-bottom: 14px;
}

.quote-bg {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #f0f0f0;
}

.test-text {
    font-size: 14.5px;
    color: #444;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 28px;
}

.test-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.test-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.test-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
}

.stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    margin-top: 4px;
}

.dots-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background .25s, transform .2s;
    border: none;
    padding: 0;
}

.dot.active {
    background: var(--blue);
    transform: scale(1.3);
}

/* ─── MEDIA SECTION ─── */
.media-section {
    padding: 64px 0;
    background: white;
}

.media-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
}

.media-section h2 {
    font-family: var(--ff-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
}

.media-track {
    display: flex;
    gap: 28px;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 calc((100% - 28px) / 2);
}

.video-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 35%);
}

.play-btn-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 46px;
    background: #ff0000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background .2s, transform .15s;
}

.video-card:hover .play-btn-circle {
    background: #cc0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    position: absolute;
    top: 14px;
    left: 14px;
    color: white;
    font-weight: 500;
    font-size: 14.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    width: calc(100% - 28px);
    justify-content: space-between;
}

.video-title .left-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vt-icon-inner {
    background: white;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
}

/* ─── TOAST ─── */
.toast-notif {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a7a45;
    color: white;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notif.active {
    transform: translateX(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
    .contact-box {
        flex-direction: column;
    }

    .contact-left {
        width: 100%;
        padding: 40px 32px;
    }

    .contact-right {
        width: 100%;
        padding: 40px 32px;
    }

    .test-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .video-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 600px) {

    .map-section,
    .map-section iframe {
        height: 350px !important;
    }

    .contact-left {
        padding: 40px 24px;
    }

    .contact-right {
        padding: 14px 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .test-card {
        flex: 0 0 100%;
    }

    .test-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .carousel-nav {
        align-self: flex-end;
    }
}

/* ─── RECAPTCHA RESPONSIVE FIXES ─── */
#contact-recaptcha-widget:empty {
    margin-bottom: 0 !important;
}

/* Initially hide the reCAPTCHA badge */
.grecaptcha-badge {
    z-index: 999 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: visibility 0.3s, opacity 0.3s ease !important;
}

/* Show the badge when user interacts with the form */
body.show-recaptcha .grecaptcha-badge {
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {

    /* Adjust invisible reCAPTCHA badge position on mobile to prevent overlapping 
       with sticky footers, chat icons, or mobile browser navigation */
    .grecaptcha-badge {
        bottom: 75px !important;
    }
}

@media (max-width: 480px) {
    .grecaptcha-badge {
        bottom: 85px !important;
        transform: scale(0.9);
        transform-origin: bottom left;
    }
}