@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Manrope:wght@600&display=swap');

/* --- Global Blue Buttons (Plugin Trigger + Elementor Buttons) --- */
.mhrepat-consult-btn-trigger,
.mhrepat-consult-btn-trigger:visited,
.mhrepat-consult-btn-trigger:focus,
.mhrepat-consult-btn-trigger:active,
.elementor-button,
.elementor-button:visited,
.elementor-button:focus,
.elementor-button:active,
.mhrepat-btn-blue .elementor-button,
.mhrepat-btn-blue .elementor-heading-title {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #2F3561 !important; /* Royal Navy */
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important; /* Slightly reduced from 20px to fit header better */
    font-weight: 600 !important;
    padding: 12px 24px !important; /* Adjusted from 24px 48px to prevent huge buttons */
    border: none !important;
    border-radius: 48px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Hide Icons */
.mhrepat-consult-btn-trigger svg,
.mhrepat-consult-btn-trigger i,
.elementor-button svg,
.elementor-button i,
.elementor-button-icon,
.elementor-button .elementor-align-icon-left,
.elementor-button .elementor-align-icon-right {
    display: none !important;
}

/* Hover/Press */
.mhrepat-consult-btn-trigger:hover,
.elementor-button:hover,
.mhrepat-btn-blue .elementor-button:hover,
.mhrepat-btn-blue .elementor-heading-title:hover {
    background-color: #C47A3A !important; /* Burnished Copper */
    color: #FFFFFF !important;
    transform: none !important;
    box-shadow: none !important;
}

/* --- Modal Base --- */
.mhrepat-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black w/ opacity */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Prevent body scroll when modal is open */
body.mhrepat-modal-open {
    overflow: hidden;
}

.mhrepat-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.mhrepat-modal-content {
    background-color: #004385;
    /* Dark blue theme */
    margin: 5% auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: Arial, sans-serif;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.mhrepat-modal.show .mhrepat-modal-content {
    transform: translateY(0);
}

/* Scrollbar for modal content */
.mhrepat-modal-content::-webkit-scrollbar {
    width: 8px;
}

.mhrepat-modal-content::-webkit-scrollbar-track {
    background: #196177;
    border-radius: 4px;
}

.mhrepat-modal-content::-webkit-scrollbar-thumb {
    background: #47a0ba;
    border-radius: 4px;
}

/* --- Modal Close --- */
.mhrepat-modal-close {
    color: #6fb2c6;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.mhrepat-modal-close:hover,
.mhrepat-modal-close:focus {
    color: #fff;
    text-decoration: none;
}

/* --- Modal Title --- */
.mhrepat-modal-title {
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 400;
    color: #fff;
}

/* --- Form Fields --- */
.mhrepat-modal form .form-group {
    margin-bottom: 15px;
    position: relative;
}

.mhrepat-modal form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #fff;
    font-weight: 400;
}

.mhrepat-modal form input[type="text"],
.mhrepat-modal form input[type="tel"],
.mhrepat-modal form select,
.mhrepat-modal form textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #d1f2eb;
    /* Light green/blue from screenshot */
    color: #333;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.mhrepat-modal form textarea {
    resize: vertical;
    min-height: 100px;
}

.mhrepat-modal form input::placeholder,
.mhrepat-modal form textarea::placeholder {
    color: #8dafa8;
}

/* --- Select Wrapper --- */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▼";
    font-size: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #333;
}

.mhrepat-modal form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* --- Divider --- */
.form-divider {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
    color: #fff;
}

/* --- Submit Button --- */
.mhrepat-submit-btn {
    width: 100%;
    background-color: #ffffff !important;
    color: #004385 !important;
    padding: 14px 20px !important;
    margin: 10px 0 0 0 !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

.mhrepat-submit-btn:hover,
.mhrepat-submit-btn:focus {
    background-color: #f0f0f0 !important;
    color: #004385 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
}

.mhrepat-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
    background-color: #e0e0e0 !important;
}

.mhrepat-modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- Form Response Messages --- */
.form-response {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.form-response.success {
    color: #a3ffcc;
}

.form-response.error {
    color: #ffb3b3;
}

/* --- Intl-Tel-Input Overrides --- */
.iti {
    width: 100%;
}

.iti__flag-container {
    padding-left: 5px;
}

.iti__selected-flag {
    background: transparent !important;
}

.iti__selected-dial-code {
    color: #333 !important;
}

.iti__country-list {
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.iti--container {
    z-index: 9999999 !important;
}

/* --- Tooltip --- */
.mhrepat-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #d93025;
    /* Red error */
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
    margin-bottom: 5px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(217, 48, 37, 0.4);
}

.mhrepat-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #d93025 transparent transparent transparent;
}

.mhrepat-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    .mhrepat-modal-content {
        padding: 25px;
        margin: 10% auto;
    }
}

@media screen and (max-width: 480px) {
    .mhrepat-modal-content {
        padding: 20px 15px;
        width: 95%;
    }

    .mhrepat-modal-title {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .mhrepat-modal form label {
        font-size: 12px;
    }

    .mhrepat-modal form input[type="text"],
    .mhrepat-modal form input[type="tel"],
    .mhrepat-modal form select,
    .mhrepat-modal form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .mhrepat-submit-btn {
        padding: 12px;
        font-size: 15px;
    }
}

/* --- Elementor Global Overrides (mhrepat task) --- */

/* Typography: Headings & Subheadings */
/* Use class 'mhrepat-heading' on the main title widget */
.mhrepat-heading,
.mhrepat-heading .elementor-heading-title {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    font-size: 72px !important;
    color: #2F3561 !important;
    margin-bottom: 40px !important;
    line-height: 1.2 !important;
}

/* Use class 'mhrepat-subheading' on the subtitle/text widget */
.mhrepat-subheading,
.mhrepat-subheading .elementor-text-editor,
.mhrepat-subheading .elementor-heading-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 24px !important;
    color: #2F3561 !important;
    margin-bottom: 124px !important;
    line-height: 1.5 !important;
}

/* (Blue buttons are now handled globally at the top of the file) */

/* White Buttons (Transparent Background) */
/* Strip background colors and borders from wrapper and inner containers to avoid double borders */
.mhrepat-btn-white,
.mhrepat-btn-white .elementor-widget-container {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.mhrepat-btn-white .elementor-heading-title {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Apply the border and padding to the actual visible element (the link) */
.mhrepat-btn-white .elementor-button,
.mhrepat-btn-white .elementor-heading-title a {
    border: 2px solid #FFFFFF !important;
    border-radius: 48px !important;
    padding: 12px 24px !important; /* Reduced to match blue buttons */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    margin-bottom: 0 !important;
    color: #FFFFFF !important;
    text-align: center;
    box-sizing: border-box !important;
    text-decoration: none !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
}

/* White Button Hover/Press */
.mhrepat-btn-white:hover .elementor-button,
.mhrepat-btn-white:hover .elementor-heading-title a,
.mhrepat-btn-white:active .elementor-button,
.mhrepat-btn-white:active .elementor-heading-title a,
.mhrepat-btn-white:focus .elementor-button,
.mhrepat-btn-white:focus .elementor-heading-title a {
    background-color: #C47A3A !important;
    color: #FFFFFF !important;
    border-color: #C47A3A !important;
}