﻿/* Contact Page Styles - Refined & Professional */

.page-header-section {
    background-color: #f0f7ff;
    color: #1e3a5f;
    border-bottom: 4px solid #2563eb;
    margin-bottom: 3rem;
}

    .page-header-section .display-3 {
        font-weight: 800;
        font-size: 2.8rem;
    }

    .page-header-section .lead {
        color: #4b5563;
        font-size: 1.2rem;
    }

.contact-section {
    background-color: #ffffff;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.map-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
}

/* Cards */
.contact-info-card,
.contact-form-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    height: 100%;
}

/* Contact Items - Improved Alignment */
.contact-item {
    display: flex;
    align-items: flex-start; /* Align to top for multi-line content */
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

    .contact-item i {
        font-size: 1.3rem;
        flex-shrink: 0;
        width: 28px;
        color: #2563eb;
        margin-top: 0.15rem; /* Fine-tuned vertical alignment */
    }

.contact-text,
.contact-link {
    color: #334155;
    text-decoration: none;
    line-height: 1.6;
    font-size: 1.05rem;
    flex: 1;
}

    .contact-text div {
        margin-bottom: 0.25rem;
    }

        .contact-text div:last-child {
            margin-bottom: 0;
        }

    .contact-link:hover {
        color: #2563eb;
        text-decoration: underline;
    }

/* WhatsApp Styling */
.text-whatsapp {
    color: #10b981 !important;
}

.whatsapp-link {
    font-weight: 600;
}

    .whatsapp-link:hover {
        color: #059669 !important;
    }

/* Map Note */
.map-note {
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border-left: 3px solid #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Map Container */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Form */
.form-intro-text {
    color: #64748b;
    font-size: 1.05rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.form-control,
.form-select {
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
    }

/* Button */
.btn-primary-custom {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.85rem 1.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

    .btn-primary-custom:hover {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    }

/* POPIA Notice */
.bg-light {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0;
}

/* Success Modal */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-body .text-success {
    color: #10b981 !important;
}

/* Google Review CTA Styles - ADD TO contact.css */
.review-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 4rem 0 2rem;
    border: 2px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

    .review-cta::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(66, 133, 244, 0.05) 0%, transparent 70%);
    }

.review-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
    position: relative;
    z-index: 1;
}

    .review-icon i {
        font-size: 2.5rem;
        color: white;
    }

.btn-google {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

    .btn-google:hover {
        background: linear-gradient(135deg, #34a853 0%, #4285f4 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
        color: white;
    }

    .btn-google i {
        font-size: 1.2rem;
    }

.stars {
    color: #fbbc05;
    font-size: 1.8rem;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

.review-text {
    font-size: 1.15rem;
    color: #5f6368;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .contact-info-card,
    .contact-form-card {
        padding: 2rem;
    }

    .contact-item {
        margin-bottom: 1.25rem;
    }

    .review-cta {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .page-header-section .display-3 {
        font-size: 2.2rem;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.75rem;
    }

    .contact-item {
        margin-bottom: 1rem;
    }

        .contact-item i {
            font-size: 1.2rem;
            width: 24px;
        }

    .contact-text,
    .contact-link {
        font-size: 1rem;
    }

    .review-cta {
        padding: 2rem 1rem;
        margin: 3rem 0 2rem;
    }

    .review-text {
        font-size: 1.05rem;
    }
}

@media (max-width: 575.98px) {
    .contact-item {
        align-items: flex-start;
    }

        .contact-item i {
            margin-top: 0.1rem;
        }

    .contact-text div {
        font-size: 0.95rem;
    }

    .btn-google {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
    }
}

/* reCAPTCHA v2 Styles - LEFT ALIGNED */
.g-recaptcha.left-aligned-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: flex-start; /* Changed from center to flex-start */
    width: 100%;
}

/* Ensure the reCAPTCHA widget is left-aligned */
.g-recaptcha > div {
    margin-left: 0 !important;
}

#recaptchaError {
    font-size: 0.85rem;
    color: #dc3545;
    text-align: left;
}

/* Make reCAPTCHA responsive with left alignment */
@media (max-width: 768px) {
    .g-recaptcha.left-aligned-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0; /* Keep scaling from left */
    }
}

@media (max-width: 576px) {
    .g-recaptcha.left-aligned-recaptcha {
        transform: scale(0.75);
        transform-origin: 0 0; /* Keep scaling from left */
    }
}

/* Ensure form elements are properly aligned */
.contact-form-card .form-label {
    text-align: left;
    display: block;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    text-align: left;
}


.g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
}