/* Call Me Back Modal Popup Styles
   Brand: Midnight #1c1c2e + Champagne Gold #C4963A
   ============================================================ */

/* ── New CMB modal styles ── */
.cmb-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 60, 52, 0.25);
}

.cmb-modal-header {
    background: linear-gradient(135deg, #1c1c2e 0%, #2e2e42 100%);
    color: #ffffff;
    padding: 28px 28px 20px;
    text-align: center;
    position: relative;
}

.cmb-header-icon {
    width: 52px;
    height: 52px;
    background: rgba(196, 150, 58, 0.2);
    border: 2px solid #C4963A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #C4963A;
    font-size: 1.2rem;
}

.cmb-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #ffffff;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.cmb-modal-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.cmb-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.cmb-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.cmb-modal-body {
    padding: 28px;
}

/* Alert */
.cmb-alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form */
.cmb-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cmb-form-group {
    display: flex;
    flex-direction: column;
}

.cmb-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cmb-input-icon {
    position: absolute;
    left: 13px;
    color: #8aa59f;
    font-size: 0.85rem;
    pointer-events: none;
}

.cmb-form-control {
    width: 100%;
    padding: 12px 12px 12px 38px;
    border: 1.5px solid #d8e4e0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #2C2C2C;
    background: #fafcfb;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Poppins', sans-serif;
}

.cmb-form-control::placeholder {
    color: #b0c0bc;
}

.cmb-form-control:focus {
    border-color: #1c1c2e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 60, 52, 0.08);
}

/* Captcha */
.cmb-captcha-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmb-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1c1c2e;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cmb-captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmb-captcha-img-box {
    background: #f0f4f2;
    border-radius: 8px;
    padding: 3px 6px;
    border: 1.5px solid #d8e4e0;
    flex-shrink: 0;
}

.cmb-captcha-img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 5px;
}

.cmb-captcha-refresh {
    background: #f0f4f2;
    border: 1.5px solid #d8e4e0;
    border-radius: 8px;
    color: #1c1c2e;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.cmb-captcha-refresh:hover {
    background: #d8e4e0;
}

.cmb-captcha-input {
    flex: 1;
    padding-left: 12px !important;
}

/* Submit */
.cmb-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1c1c2e 0%, #2e2e42 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26, 60, 52, 0.28);
    margin-top: 4px;
    font-family: 'Poppins', sans-serif;
}

.cmb-submit-btn:hover {
    background: linear-gradient(135deg, #C4963A 0%, #e8b84b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 150, 58, 0.35);
}

.cmb-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Note */
.cmb-note {
    text-align: center;
    color: #9aaca8;
    font-size: 0.76rem;
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cmb-note i {
    color: #C4963A;
}

/* Legacy modal styles below (kept for compatibility)
   ============================================================ */

.call-me-back-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.call-me-back-modal.show {
    visibility: visible;
    opacity: 1;
}

.call-me-back-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.call-me-back-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideInDown 0.4s ease-out;
}

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

.call-me-back-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.call-me-back-close-btn:hover {
    color: #000000;
}

.call-me-back-header {
    text-align: center;
    margin-bottom: 2rem;
}

.call-me-back-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1c1c2e;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.call-me-back-header p {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Form Styles */
.call-me-back-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group .form-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1c1c2e;
    margin-bottom: 0.5rem;
}

.form-group .text-danger {
    color: #dc3545;
    margin-left: 0.25rem;
}

.form-group .form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #495057;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group .form-control:focus {
    outline: none;
    border-color: #1c1c2e;
    box-shadow: 0 0 0 0.2rem rgba(26, 60, 52, 0.15);
}

.form-group .form-control::placeholder {
    color: #adb5bd;
}

/* Captcha Wrapper */
.captcha-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.captcha-image {
    flex: 1;
    height: auto;
    min-height: 50px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem;
    background-color: #f8f9fa;
    cursor: pointer;
}

.btn-captcha-refresh {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: #1c1c2e;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    line-height: 1;
}

.btn-captcha-refresh:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.captcha-input {
    text-align: center;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Submit Button */
.btn-submit {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1c1c2e 0%, #2e2e42 100%);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 60, 52, 0.35);
    background: linear-gradient(135deg, #C4963A 0%, #e8b84b 100%);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text {
    display: inline;
}

.btn-loading {
    display: inline;
}

/* Alert Messages */
.call-me-back-modal .alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    margin-bottom: 1.5rem;
}

.call-me-back-modal .alert-success {
    background-color: #d4edda;
    color: #155724;
}

.call-me-back-modal .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.call-me-back-modal .alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Note at bottom */
.call-me-back-note {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 576px) {
    .call-me-back-modal-content {
        padding: 1.75rem 1.25rem;
        max-width: calc(100% - 1rem);
    }

    .call-me-back-header h2 {
        font-size: 1.5rem;
    }

    .call-me-back-header p {
        font-size: 0.9rem;
    }

    .call-me-back-form {
        gap: 1rem;
    }

    .form-group .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
}

/* Scrollbar styles for modal */
.call-me-back-modal-content::-webkit-scrollbar {
    width: 6px;
}

.call-me-back-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.call-me-back-modal-content::-webkit-scrollbar-thumb {
    background: #dec0a1;
    border-radius: 3px;
}

.call-me-back-modal-content::-webkit-scrollbar-thumb:hover {
    background: #C4963A;
}

.z-index-999999 {
    z-index: 999999 !important;
}