/* Contact Us Page Styles */

.contact-page-wrapper {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.form-map-section {
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.input-wrapper .form-control {
    padding-left: 45px;
    height: 45px;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-wrapper .form-control:focus {
    border-color: var(--rt-primary, #890C25);
    box-shadow: 0 0 0 0.2rem rgba(137, 12, 37, 0.15);
}

select.form-control {
    padding-left: 45px;
    height: 45px;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

select.form-control:focus {
    border-color: var(--rt-primary, #890C25);
    box-shadow: 0 0 0 0.2rem rgba(137, 12, 37, 0.15);
}

select.form-control:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Phone Input Styling */
.phone-input-wrapper {
    position: relative;
}

.phone-input-wrapper .input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-wrapper .input-group:focus-within {
    border-color: var(--rt-primary, #890C25);
    box-shadow: 0 0 0 0.2rem rgba(137, 12, 37, 0.15);
}

.phone-input-wrapper .country-code {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.phone-input-wrapper .country-code-display {
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    user-select: none;
    min-width: 80px;
    font-size: 14px;
}

.phone-input-wrapper .phone-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 15px;
    height: 42px;
    font-size: 14px;
}

.phone-input-wrapper .phone-input:focus {
    outline: none;
    box-shadow: none;
}

/* Country code dropdown on click */
.country-code-display:hover {
    background-color: #e9ecef;
}

.phone-input-wrapper .country-code.show {
    position: absolute;
    opacity: 1;
    pointer-events: all;
    width: 100%;
    height: auto;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 4px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 13px;
}

.agreement-check {
    padding: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--rt-primary, #890C25);
    border-radius: 4px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: var(--rt-primary, #890C25);
    border-color: var(--rt-primary, #890C25);
}

.form-check-label {
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    line-height: 1.5;
    flex: 1;
}

.enquiry-submit-btn {
    background: var(--rt-primary);
    color: #fff;
    border: 2px solid var(--rt-primary);
    border-radius: 10px;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.enquiry-submit-btn:hover {
    transform: translateY(-2px);
    background: #fff;
    color: var(--rt-primary);
    border: 2px solid var(--rt-primary);
}

.main-heading {
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.map-container {
    height: 90%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border-radius: 12px;
    border: 2px solid #dee2e6;
}

/* Contact Information Section */
.dta {
    margin-top: 2rem;
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.dta .contact-title-header h3 {
    font-weight: bold;
    margin-bottom: 30px;
}

.dta .dynamic-content p {
    font-size: 16px;
    color: #495057;
    text-align: justify;
}

.dta .dynamic-content b {
    font-size: 18px;
    color: #343a40;
}

.dta .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.dta .single-blog {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    background-color: #fff;
    width: 320px;
    text-align: center;
    box-sizing: border-box;
    min-height: 150px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.dta .single-blg {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    background-color: #fff;
    min-width: 320px;
    text-align: center;
    box-sizing: border-box;
    min-height: 180px;
    border-radius: 8px;
}

.dta .blog__title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--rt-primary, #890C25);
    text-align: center;
}

.dta .blog__meta p {
    text-align: center;
    margin: 0;
}

.dta .blog__meta a {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
}

.dta .blog__meta a:hover {
    color: var(--rt-primary, #890C25);
}

.dta .text a {
    margin-left: 0;
    word-break: break-word;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
}

.dta .text a:hover {
    color: var(--rt-primary, #890C25);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-page-wrapper {
        padding: 40px 0;
    }

    .form-map-section {
        padding: 25px;
    }

    .map-container {
        height: auto;
        min-height: 400px;
        margin-top: 20px;
    }

    .map-container iframe {
        height: 400px;
    }
}

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

    .form-map-section {
        padding: 20px 15px;
        margin-bottom: 30px;
    }

    /* Main Headings - Much larger for prominence */
    .main-heading {
        font-size: 2rem !important;
        font-weight: 600 !important;
        margin-bottom: 1.25rem !important;
    }

    /* Sub-headings - Smaller than main headings */
    h5 {
        font-size: 1.2rem !important;
    }

    .dta .blog__title {
        font-size: 16px;
    }

    /* Section titles - Clear hierarchy */
    .form-section-title {
        font-size: 16px !important;
    }

    .map-container {
        height: auto;
        min-height: 350px;
        margin-top: 30px;
    }

    .map-container iframe {
        height: 350px;
        width: 100%;
        max-width: 100%;
    }

    .dta {
        padding: 20px 15px;
        margin-top: 30px;
    }

    .dta .single-blog,
    .dta .single-blg {
        width: 100%;
        max-width: 100%;
    }

    .dta .contact-title-header h3 {
        font-size: 1.75rem;
        font-weight: 600;
    }

    .input-wrapper .form-control,
    select.form-control {
        height: 42px;
        font-size: 13px;
    }

    .form-label {
        font-size: 13px;
    }

    .enquiry-submit-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .contact-page-wrapper {
        padding: 20px 0;
    }

    .form-map-section {
        padding: 15px 10px;
        border-radius: 8px;
    }

    /* Main Headings - Keep prominent even on small screens */
    .main-heading {
        font-size: 2rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    /* Sub-headings - Clear hierarchy */
    h5 {
        font-size: 1.1rem !important;
    }

    .dta .blog__title {
        font-size: 15px;
    }

    /* Section titles - Smaller than main */
    .form-section-title {
        font-size: 15px !important;
    }

    .map-container {
        min-height: 300px;
        margin-top: 25px;
    }

    .map-container iframe {
        height: 300px;
        border-radius: 8px;
    }

    .dta {
        padding: 15px 10px;
        border-radius: 8px;
    }

    .dta .contact-title-header h3 {
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .dta .single-blog {
        min-height: 120px;
        padding: 15px;
    }

    .form-section-title {
        font-size: 15px;
    }
}
