/* ==========================================================================
   GlobalMedCure - Doctors, Hospitals & Enquiry Modal Theme Alignment
   100% Consistent with MediPro & Index.php Design System
   ========================================================================== */

/* Search & Filter Controls Container */
.gmc-search-wrap {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    margin-bottom: 35px;
}

.gmc-search-flex-row {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 12px !important;
    flex-wrap: wrap;
    width: 100%;
}

.gmc-search-flex-row .gmc-search-input-box {
    flex: 1 1 260px;
    position: relative;
    margin: 0 !important;
}

.gmc-search-flex-row .gmc-search-input-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #1A76D1;
    font-size: 16px;
    z-index: 2;
}

.gmc-search-flex-row .gmc-search-input-box input {
    width: 100%;
    height: 48px;
    padding-left: 45px !important;
    padding-right: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #2C2D3F;
    background: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

.gmc-search-flex-row .gmc-search-input-box input:focus {
    border-color: #1A76D1;
    box-shadow: 0 0 0 3px rgba(26, 118, 209, 0.1);
}

/* Select Dropdown Box & NiceSelect Override */
.gmc-search-flex-row .gmc-select-box {
    flex: 0 0 190px;
    max-width: 190px;
    margin: 0 !important;
}

.gmc-search-flex-row .gmc-select-box select {
    height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #2C2D3F;
    background: #ffffff;
    outline: none;
    width: 100%;
    padding: 0 14px;
}

.gmc-search-flex-row .nice-select {
    float: left !important;
    display: inline-block !important;
    width: 100% !important;
    height: 48px !important;
    line-height: 46px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #2C2D3F !important;
    padding-left: 14px !important;
    padding-right: 30px !important;
    margin: 0 !important;
}

.gmc-search-flex-row .nice-select:after {
    right: 14px !important;
}

.gmc-search-flex-row .nice-select .list {
    width: 100% !important;
    max-height: 260px;
    overflow-y: auto;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Button Box */
.gmc-search-flex-row .gmc-btn-box {
    flex: 0 0 110px;
    max-width: 110px;
    margin: 0 !important;
    margin-left: 0 !important;
}

.gmc-search-flex-row .gmc-btn-box button,
.gmc-search-flex-row .gmc-btn-box .btn {
    height: 48px;
    line-height: 48px;
    padding: 0 20px !important;
    border-radius: 6px !important;
    font-size: 14px;
    font-weight: 600;
    width: 100% !important;
    border: none;
    cursor: pointer;
    background: #1A76D1;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    text-align: center;
}

.gmc-search-flex-row .gmc-btn-box button:hover,
.gmc-search-flex-row .gmc-btn-box .btn:hover {
    background: #2C2D3F;
    color: #ffffff;
}

/* ==========================================================================
   Full Hospital Card Block (Hospitals.html) - Robust & Un-distorted
   ========================================================================== */
.gmc-hosp-block-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 28px !important;
    margin-bottom: 35px !important;
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
    display: block !important;
    clear: both !important;
    box-sizing: border-box !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.gmc-hosp-block-card:hover {
    box-shadow: 0px 15px 40px rgba(26, 118, 209, 0.12) !important;
    border-color: #1A76D1 !important;
}

.gmc-hosp-top-flex {
    display: flex !important;
    gap: 28px !important;
    align-items: flex-start !important;
    margin-bottom: 24px !important;
}

@media (max-width: 991px) {
    .gmc-hosp-top-flex {
        flex-direction: column-reverse !important;
    }
}

.gmc-hosp-info-side {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.gmc-hosp-image-side {
    width: 360px !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
}

@media (max-width: 991px) {
    .gmc-hosp-image-side {
        width: 100% !important;
    }
}

.gmc-hosp-img-wrap {
    width: 100% !important;
    height: 240px !important;
    max-height: 240px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #f8fafc !important;
}

.gmc-hosp-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px !important;
}

.gmc-accreditation-pill {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    background: #1A76D1 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 5 !important;
}

.gmc-hosp-card-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2C2D3F !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}

.gmc-hosp-card-desc {
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
}

/* Stats Badges Row */
.gmc-hosp-stats-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
}

.gmc-stat-badge {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #334155 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.gmc-stat-badge i {
    color: #1A76D1 !important;
    font-size: 14px !important;
}

.gmc-stat-label {
    color: #64748b !important;
}

.gmc-stat-val {
    font-weight: 600 !important;
    color: #1e293b !important;
}

/* Facilities Section */
.gmc-facilities-container {
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 24px !important;
}

.gmc-facilities-header {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #2C2D3F !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.gmc-facility-pills-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.gmc-facility-pill-item {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.gmc-facility-pill-item i {
    color: #1A76D1 !important;
    font-size: 12px !important;
}

.gmc-facility-toggle-btn {
    background: transparent !important;
    border: none !important;
    color: #1A76D1 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin-top: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    outline: none !important;
}

.gmc-facility-toggle-btn:hover {
    text-decoration: underline !important;
}

/* 4 Action Buttons Row */
.gmc-hosp-actions-row {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.gmc-hosp-btn-doctors {
    background: #1A76D1 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    flex: 1 1 180px !important;
    border: none !important;
    transition: background 0.3s ease !important;
}

.gmc-hosp-btn-doctors:hover {
    background: #135cb4 !important;
    color: #ffffff !important;
}

.gmc-hosp-btn-enquire {
    background: #2C2D3F !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: none !important;
    cursor: pointer !important;
    flex: 1 1 160px !important;
    transition: background 0.3s ease !important;
}

.gmc-hosp-btn-enquire:hover {
    background: #191a27 !important;
    color: #ffffff !important;
}

.gmc-hosp-btn-whatsapp {
    background: #25D366 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    flex: 1 1 180px !important;
    border: none !important;
    transition: background 0.3s ease !important;
}

.gmc-hosp-btn-whatsapp:hover {
    background: #1eb956 !important;
    color: #ffffff !important;
}

.gmc-hosp-btn-book {
    background: #ffffff !important;
    color: #1A76D1 !important;
    border: 1.5px solid #1A76D1 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    flex: 1 1 190px !important;
    transition: all 0.3s ease !important;
}

.gmc-hosp-btn-book:hover {
    background: #1A76D1 !important;
    color: #ffffff !important;
}

/* 3x3 Doctor Cards Grid */
.gmc-doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .gmc-doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gmc-doctors-grid {
        grid-template-columns: 1fr;
    }
}

/* Doctor Card UI (Reference Image 1 Matched with Index.php Theme) */
.gmc-doc-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.gmc-doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #1A76D1;
}

.gmc-doc-img-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f8fafc;
}

.gmc-doc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.gmc-doc-body {
    padding: 20px 18px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gmc-doc-name {
    font-size: 19px;
    font-weight: 700;
    color: #2C2D3F;
    margin-bottom: 4px;
    line-height: 1.3;
}

.gmc-doc-specialty {
    font-size: 14px;
    font-weight: 600;
    color: #1A76D1;
    margin-bottom: 12px;
}

.gmc-doc-exp {
    font-size: 13px;
    color: #757575;
    font-weight: 400;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.gmc-doc-hospital {
    font-size: 13px;
    color: #2C2D3F;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 3 Circular Action Icon Buttons */
.gmc-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.gmc-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.gmc-action-btn.btn-profile {
    background: #f0f6ff;
    color: #1A76D1;
}

.gmc-action-btn.btn-profile:hover {
    background: #1A76D1;
    color: #ffffff;
}

.gmc-action-btn.btn-enquire {
    background: #f8fafc;
    color: #2C2D3F;
}

.gmc-action-btn.btn-enquire:hover {
    background: #2C2D3F;
    color: #ffffff;
}

.gmc-action-btn.btn-whatsapp {
    background: #e6f7ef;
    color: #25d366;
}

.gmc-action-btn.btn-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
}

/* Pagination Controls (Matching Index Theme) */
.gmc-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.gmc-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 5px;
    border: 1px solid #eee;
    background: #ffffff;
    color: #2C2D3F;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gmc-page-btn:hover, .gmc-page-btn.active {
    background: #1A76D1;
    color: #ffffff;
    border-color: #1A76D1;
}

.gmc-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Interactive Enquiry & Consultation Form Modal (Scrollable & Responsive Fix) */
.gmc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44, 45, 63, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 15px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.gmc-modal-card {
    background: #ffffff;
    border-radius: 20px;
    max-width: 680px !important;
    width: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 36px 40px !important;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: gmcModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin: auto;
}

/* Custom Smooth Scrollbar for Modal Cards */
.gmc-modal-card::-webkit-scrollbar,
.gmc-modal-overlay::-webkit-scrollbar {
    width: 6px;
}
.gmc-modal-card::-webkit-scrollbar-track,
.gmc-modal-overlay::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}
.gmc-modal-card::-webkit-scrollbar-thumb,
.gmc-modal-overlay::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.gmc-modal-card::-webkit-scrollbar-thumb:hover,
.gmc-modal-overlay::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@keyframes gmcModalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.gmc-modal-close {
    position: absolute;
    top: 22px;
    right: 24px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gmc-modal-close:hover {
    background: #1A76D1;
    color: #ffffff;
}

.gmc-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #2C2D3F;
    margin-bottom: 6px;
}

.gmc-modal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

#gmc-modal-doc-info {
    font-size: 14px;
    font-weight: 600;
    color: #1A76D1;
    background: #f0f6ff;
    border: 1px solid #dbeafe;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 22px;
    display: block;
    word-break: break-word;
}

.gmc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 580px) {
    .gmc-modal-overlay {
        padding: 16px 10px !important;
        align-items: flex-start !important;
    }
    .gmc-modal-card {
        padding: 24px 18px !important;
        max-height: calc(100vh - 32px) !important;
        border-radius: 16px !important;
        margin: 0 auto !important;
    }
    .gmc-modal-title {
        font-size: 20px !important;
        padding-right: 28px !important;
    }
    .gmc-modal-close {
        top: 16px !important;
        right: 16px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }
    .gmc-form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

.gmc-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.gmc-form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

.gmc-form-group label,
#gmcConsultationForm label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #2C2D3F !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-family: inherit !important;
}

/* Form Input & Select Equal Sizing, Font Properties & Alignment */
#gmcConsultationForm input:not([type="file"]):not(.gmc-phone-wrap input),
#gmcConsultationForm input[type="text"],
#gmcConsultationForm input[type="email"],
#gmcConsultationForm input[type="tel"],
#gmcConsultationForm textarea,
.gmc-form-group input:not([type="file"]):not(.gmc-phone-wrap input),
.gmc-form-group input[type="text"],
.gmc-form-group input[type="email"],
.gmc-form-group input[type="tel"],
.gmc-form-group textarea {
    width: 100% !important;
    height: 50px !important;
    line-height: 48px !important;
    padding: 0 18px !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1A76D1 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    outline: none !important;
    margin: 0 !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
}

/* Filled / Value Present State (Matching Soft Blue Background #edf4fc) */
#gmcConsultationForm input:not(:placeholder-shown),
#gmcConsultationForm textarea:not(:placeholder-shown),
.gmc-form-group input:not(:placeholder-shown),
.gmc-form-group textarea:not(:placeholder-shown) {
    background-color: #edf4fc !important;
    color: #1A76D1 !important;
    font-weight: 600 !important;
}

.gmc-form-group textarea,
#gmcConsultationForm textarea {
    height: 120px !important;
    line-height: 1.5 !important;
    padding: 14px 18px !important;
    resize: vertical !important;
}

/* Select Department Dropdown UI Match with Arrow & Blue Text */
#gmcConsultationForm select,
.gmc-form-group select {
    width: 100% !important;
    height: 50px !important;
    line-height: 48px !important;
    padding: 0 40px 0 18px !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1A76D1 !important;
    background-color: #ffffff !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231A76D1%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 12px auto !important;
    box-sizing: border-box !important;
    outline: none !important;
    cursor: pointer !important;
}

.gmc-form-group select option,
#gmcConsultationForm select option {
    color: #1A76D1 !important;
    font-weight: 600 !important;
    background: #ffffff !important;
    padding: 10px !important;
}

.gmc-form-group .nice-select,
.gmc-form-group .nice-select .current {
    color: #1A76D1 !important;
    font-weight: 600 !important;
}

/* File Upload Field Match */
#gmcConsultationForm input[type="file"],
.gmc-form-group input[type="file"] {
    height: 50px !important;
    padding: 10px 14px !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #1A76D1 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}

/* Focus States */
#gmcConsultationForm input:focus,
#gmcConsultationForm select:focus,
#gmcConsultationForm textarea:focus,
.gmc-form-group input:focus,
.gmc-form-group select:focus,
.gmc-form-group textarea:focus {
    border-color: #1A76D1 !important;
    background-color: #edf4fc !important;
    box-shadow: 0 0 0 3px rgba(26, 118, 209, 0.15) !important;
}

/* Placeholders */
#gmcConsultationForm input::placeholder,
#gmcConsultationForm textarea::placeholder,
.gmc-form-group input::placeholder,
.gmc-form-group textarea::placeholder {
    color: #757575 !important;
    font-weight: 400 !important;
}

/* Fix Browser Autofill / Auto-complete Text Color (#1A76D1 & #eef4fc) */
#gmcConsultationForm input:-webkit-autofill,
#gmcConsultationForm input:-webkit-autofill:hover,
#gmcConsultationForm input:-webkit-autofill:focus,
#gmcConsultationForm input:-webkit-autofill:active,
#gmcConsultationForm textarea:-webkit-autofill,
#gmcConsultationForm textarea:-webkit-autofill:hover,
#gmcConsultationForm textarea:-webkit-autofill:focus,
#gmcConsultationForm textarea:-webkit-autofill:active,
.gmc-form-group input:-webkit-autofill,
.gmc-form-group input:-webkit-autofill:hover,
.gmc-form-group input:-webkit-autofill:focus,
.gmc-form-group input:-webkit-autofill:active,
.gmc-form-group textarea:-webkit-autofill,
.gmc-form-group textarea:-webkit-autofill:hover,
.gmc-form-group textarea:-webkit-autofill:focus,
.gmc-form-group textarea:-webkit-autofill:active {
    -webkit-text-fill-color: #1A76D1 !important;
    -webkit-box-shadow: 0 0 0px 1000px #eef4fc inset !important;
    font-weight: 600 !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

select.gmc-country-code,
.gmc-form-group select.gmc-country-code {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

input[name="country"][readonly],
input[name="country"][disabled],
input[name="country"]:read-only,
input[name="country"]:disabled,
.gmc-country-readonly {
    background-color: #e9ecef !important;
    color: #495057 !important;
    border: 1px solid #ced4da !important;
    cursor: not-allowed !important;
    opacity: 0.85 !important;
    font-weight: 500 !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
}

.gmc-form-group .nice-select,
#gmcConsultationForm .nice-select {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    float: none !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    line-height: 1 !important;
    padding-left: 18px !important;
    padding-right: 36px !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1A76D1 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.gmc-form-group .nice-select:after,
#gmcConsultationForm .nice-select:after {
    top: 50% !important;
    transform: translateY(-50%) rotate(45deg) !important;
    margin-top: 0 !important;
    right: 18px !important;
    border-bottom: 2px solid #757575 !important;
    border-right: 2px solid #757575 !important;
}

.gmc-form-group .nice-select .current,
#gmcConsultationForm .nice-select .current {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1A76D1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Phone Wrap & Country Code Select Styling (High Specificity Overriding Generic Selects) */
.gmc-phone-wrap,
.gmc-form-group .gmc-phone-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    position: relative !important;
}

.gmc-phone-wrap .nice-select,
.gmc-form-group .gmc-phone-wrap .nice-select {
    flex: 0 0 94px !important;
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 48px !important;
    margin: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #1A76D1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    padding: 0 24px 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.gmc-phone-wrap .nice-select .current,
.gmc-form-group .gmc-phone-wrap .nice-select .current {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    color: #1A76D1 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

.gmc-phone-wrap .nice-select:after,
.gmc-form-group .gmc-phone-wrap .nice-select:after {
    top: 50% !important;
    margin-top: -4px !important;
    right: 8px !important;
    border-bottom: 2px solid #64748b !important;
    border-right: 2px solid #64748b !important;
}

.gmc-phone-wrap input,
.gmc-form-group .gmc-phone-wrap input {
    flex: 1 1 auto !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1e293b !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.gmc-form-group .nice-select .list {
    max-height: 260px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12) !important;
    z-index: 999999 !important;
}

.gmc-form-group .nice-select .option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 34px !important;
    min-height: 34px !important;
    padding-left: 14px !important;
    padding-right: 12px !important;
}

.gmc-form-group .nice-select .option .country-code-label {
    flex: 0 0 68px !important;
    min-width: 68px !important;
    color: #1A76D1 !important;
    font-weight: 600 !important;
}

.gmc-form-group .nice-select .option .country-name-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: #2C2D3F !important;
    font-weight: 500 !important;
}

.gmc-form-group .nice-select .option.selected:not(:hover) {
    background-color: #eef6ff !important;
}

.gmc-form-group .nice-select .option.selected:not(:hover) .country-code-label,
.gmc-form-group .nice-select .option.selected:not(:hover) .country-name-label {
    color: #1A76D1 !important;
    font-weight: 700 !important;
}

.gmc-form-group .nice-select .option:hover {
    background-color: #1A76D1 !important;
    color: #ffffff !important;
}

.gmc-form-group .nice-select .option:hover .country-code-label,
.gmc-form-group .nice-select .option:hover .country-name-label {
    color: #ffffff !important;
}

.gmc-form-group .nice-select .option .country-name-label {
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.gmc-form-group select {
    display: none !important;
}

.gmc-form-group select:not(+ .nice-select) {
    display: block !important;
    -webkit-appearance: select !important;
    -moz-appearance: select !important;
    appearance: select !important;
}

.gmc-form-group textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    outline: none !important;
    resize: vertical !important;
    line-height: 1.5 !important;
}

.gmc-form-group input:focus,
.gmc-form-group select:focus,
.gmc-form-group textarea:focus {
    border-color: #1A76D1 !important;
    box-shadow: 0 0 0 3.5px rgba(26, 118, 209, 0.15) !important;
}

.gmc-btn-submit {
    background: #1A76D1 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 14px rgba(26, 118, 209, 0.3) !important;
}

.gmc-btn-submit:hover {
    background: #2C2D3F !important;
}

/* Custom Field Error Popup Tooltip (Matching Attached UI Design) */
.form-group, .gmc-form-group, .gmc-phone-wrap {
    position: relative;
}

.gmc-field-error-popup {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    animation: gmcPopupFadeIn 0.2s ease-out !important;
}

.gmc-field-error-popup .gmc-field-error-text {
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    line-height: 1.4 !important;
}

.gmc-field-error-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 18px;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    border-left: 1px solid #cbd5e1;
    transform: rotate(45deg);
}

.gmc-error-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px;
    height: 22px;
    background: #d97706;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 900;
    font-size: 13px;
    flex-shrink: 0;
}

@keyframes gmcPopupFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

input.gmc-input-invalid,
select.gmc-input-invalid,
textarea.gmc-input-invalid,
.nice-select.gmc-input-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.2) !important;
}
