/* Custom CSS for close button applies to all modals */
.btn-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 12px;
    height: 12px;
    /*border-radius: 50%;*/
    border: none;
    background-color: transparent;
    /*box-shadow: 0 0 100px rgba(241, 136, 5, 0.3);*/
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    outline: none !important;
    padding: 5px;
    z-index: 1009;
}

/* Styling for the "X" */
.btn-close::before,
.btn-close::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 16px;
    background-color: #A3A3A3;
}

.btn-close::before {
    transform: rotate(45deg);
}

.btn-close::after {
    transform: rotate(-45deg);
}
/* Add dark background with blur for modal */
.modal-backdrop {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1100; /* Behind modal */
    backdrop-filter: blur(8px); /* Blur effect */
}
.modal-backdrop.fade {
    opacity: 0; /* Initial state */
}

.modal-backdrop.show {
    opacity: 0.9 !important; /* Visible state */
    /* z-index: 10001 !important; */
}

/* Ensure modal content stays fixed during transitions */
.modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1200;
    max-width: 600px;
    width: 100%;
}

/* Prevent page shift on modal open/close */
.modal-open {
    overflow: hidden !important; /* Prevent body scrolling */
    margin-right: var(--scrollbar-width, 24px) !important; /* Dynamically compensate for scrollbar */

}

.modal-open .modal {
    padding-right:  var(--scrollbar-width, 24px) !important;
}

.modal-closed {
    padding-right: 0 !important;
    transition: ease-in 0.5s !important ;

}

body:not(.modal-open) {
    padding-right: 0 !important;
}

/* Modal transitions */
.modal.fade {
    opacity: 0.2;
    transform: translate(-50%, -45%);
}

.modal.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Base Modal Content Styles */
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1200; /* match modal */
    max-width: 600px;
    width: 100%;
}


.modal-dialog {
    /* z-index: 9999 !important; */

}



.prompt-modal-logo {
    max-width: 25%;
    position: absolute;
    top: 10px;
    left: 15px;
}

.report-modal-title{
    text-align: center;
    margin-inline: auto;
    font-weight: bolder;
    font-size: 36px;
    padding-top: 30px;
}

.prompt-modal-title {
    font-size: 20px;
    font-weight: bolder;
    /*margin-bottom: 15px;*/
    color: #0F1429;
}

.prompt-modal-body {
    font-size: 18px;
    font-weight: bolder;
    color: #4F5674;
}

.prompt-modal-footer {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 16px 0;
    /*position: relative;*/
    flex-direction: row;
    justify-content: space-between;
    float: right;
    z-index: 1001;
}

.prompt-modal-button-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    /*margin-bottom: 10px;*/
    margin: 0;
}

.prompt-modal-dots-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: -30px;
}

.prompt-modal-dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.prompt-modal-dot.active {
    background-color: #1C1E29;
}

.prompt-modal-button-alt,
.prompt-modal-button {
    min-width: 65px;
    margin: -30px 0 0 0;
    margin-inline-start: auto ;
}

.prompt-modal-button{
    margin-right: 24px;
    margin-bottom: 8px;
}

.prompt-modal-button-alt{
    margin-left: 24px;
}


.prompt-modal .modal-content,
.report-modal .modal-content,
.change-pass-modal .modal-content {
    overflow-wrap: anywhere;
    left: 50% !important;
    transform: translateX(-50%);
    text-align: center;
    color: #0f1429 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    width: 480px;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Register / Login Modal — Modern redesign ────────────────────────────── */

.register-modal .modal-dialog {
    max-width: 460px;
    width: 100%;
}

.register-modal .modal-content {
    background: #ffffff;
    border: none;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    overflow-wrap: anywhere;
    padding: 0;
    margin: 0 auto;
}

.register-modal .modal-header {
    border-bottom: none;
    padding: 20px 24px 0 24px;
    background: transparent;
}

.register-modal .modal-header .btn-close {
    opacity: 0.4;
    transition: opacity 0.15s;
}

.register-modal .modal-header .btn-close:hover {
    opacity: 0.8;
}

.register-modal .prompt-modal-logo {
    position: static;
    max-width: 120px;
    height: auto;
    transform: none;
}

.register-modal .modal-body {
    padding: 16px 28px 8px;
    text-align: left;
}

.register-modal .modal-footer {
    border-top: 1px solid #f1f3f5;
    padding: 14px 28px 18px;
    justify-content: center;
    background: transparent;
}

/* Title & subtitle */
.rm-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f1429;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.rm-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px 0;
}

/* Field group */
.rm-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

/* Override the register-page subcomponent wrappers */
.register-modal .usernameInput-wrapper,
.register-modal .emailInput-wrapper,
.register-modal .account-pass-input-wrapper {
    padding: 0;
    margin: 0;
}

/* Clean inputs — applies to native inputs AND form-control subcomponents */
.rm-input,
.register-modal .form-control.usernameInput,
.register-modal .form-control.emailInput,
.register-modal .form-control {
    width: 100% !important;
    height: 46px !important;
    padding: 0 14px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #0f1429 !important;
    background: #f9fafb !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s !important;
    margin: 0 !important;
}

.rm-input::placeholder,
.register-modal .form-control::placeholder {
    color: #9ca3af !important;
}

.rm-input:focus,
.register-modal .form-control:focus {
    border-color: #ff4a00 !important;
    box-shadow: 0 0 0 3px rgba(255, 74, 0, 0.10) !important;
    background: #ffffff !important;
}

/* Checkbox */
.rm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
    cursor: pointer;
    user-select: none;
}

.rm-checkbox {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: #ff4a00;
    cursor: pointer;
}

/* Primary action button — visual style from global .buttons, only width added here */
.rm-btn {
    width: 100% !important;
}

.rm-btn:disabled {
    /* keep disabled pointer style since .buttons uses pointer-events:none */
    cursor: not-allowed;
}

/* Error message */
.rm-error {
    font-size: 12px;
    color: #dc2626;
    margin: 8px 0 0 0;
    text-align: center;
}

/* Divider */
.rm-divider {
    margin: 18px 0;
}

/* Footer toggle */
.register-modal-footer {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rm-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ff4a00;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s;
}

.rm-toggle-btn:hover {
    color: #cc3900;
}

/* Validation message positioning inside modal */
.register-modal .emailInput-verify-sent {
    top: 0;
    right: 0;
    position: static;
    margin-top: 4px;
}

.register-modal .emailInput-button {
    min-width: fit-content;
}

.register-modal .account-password-error,
.register-modal .emailInput-message,
.register-modal .usernameInput-message,
.register-modal .account-password-error-verify {
    font-size: 11px;
    position: static;
    display: block;
    margin-top: 2px;
}

.register-modal .emailInput-Tick {
    color: #16a34a;
    font-size: 1.2em;
    margin: 0;
}

/* ── Register Modal — Dark Mode ──────────────────────────────────────────── */

[data-theme="dark"] .register-modal .modal-content {
    background: #161d35;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .register-modal .modal-header .btn-close {
    filter: invert(1);
}

[data-theme="dark"] .register-modal .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .rm-title {
    color: #f1f5f9;
}

[data-theme="dark"] .rm-subtitle {
    color: #64748b;
}

[data-theme="dark"] .rm-input,
[data-theme="dark"] .register-modal .form-control.usernameInput,
[data-theme="dark"] .register-modal .form-control.emailInput,
[data-theme="dark"] .register-modal .form-control {
    background: #1e2640 !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .rm-input::placeholder,
[data-theme="dark"] .register-modal .form-control::placeholder {
    color: #475569 !important;
}

[data-theme="dark"] .rm-input:focus,
[data-theme="dark"] .register-modal .form-control:focus {
    border-color: #ff4a00 !important;
    box-shadow: 0 0 0 3px rgba(255, 74, 0, 0.15) !important;
    background: #232c4a !important;
}

[data-theme="dark"] .rm-checkbox-label {
    color: #94a3b8;
}

/* .rm-btn dark mode handled by global [data-theme="dark"] .buttons */

[data-theme="dark"] .rm-error {
    color: #f87171;
}

[data-theme="dark"] .register-modal-footer {
    color: #64748b;
}

[data-theme="dark"] .rm-toggle-btn {
    color: #fb923c;
}

[data-theme="dark"] .rm-toggle-btn:hover {
    color: #fed7aa;
}

[data-theme="dark"] .register-modal .usernameInput-message-danger,
[data-theme="dark"] .register-modal .account-password-error {
    color: #f87171;
}

[data-theme="dark"] .register-modal .usernameInput-message-success {
    color: #4ade80;
}

/* ── /admin page — modal content override ───────────────────────────────── */
.admin-page .modal-content {
    height: auto !important;
    min-width: fit-content !important;
    max-width: none !important;
}

/* Legacy classes kept for other usages */
.register-modal-join { min-width: 100% !important; }
.register-modal-title { font-size: 22px; font-weight: 800; }

/* Override modal content styles for the change-pass-modal Modal on /account */

.change-pass-modal .modal-content,
.verify-modal .modal-content {
    min-width: auto ;
    min-height: 450px ;
    margin-top: 30px;
}
.change-pass-modal .modal-body .prompt-modal-title  {
    margin-top: 30px;

}


/* Override modal content styles for the Report Modal */
.report-modal {
    height: auto !important;
    width: auto !important;
    min-width: fit-content !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 600px;
    overflow-x: hidden !important;
}

.report-modal .modal-content {
    height: auto !important;
    max-width: calc(100vw - 30px) !important;
    width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.report-modal .modal-open{
    margin-right: 0 !important; /* Adjust for scrollbar */
}

.modal-open{
    padding-right: 0 !important;

}

.report-modal .modal-dialog{
    max-width: inherit !important;
}

.report-modal .contact-us-main {
    min-width: 100%;
}

.request-label{
    display:flex;
    align-items: left;
    color:grey;
    padding-top: 10px;
    padding-left: 5px;

}
.submission-success {
    text-align: center;
}
.submission-success-checkmark{
    display: flex;
    align-items: center;
    justify-content: center;
}

/*styling app selector for onboarding modal*/
.appSelector-wrapper {
    /*width: calc(100% - 16px) !important;*/
}

.appSelector-title {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.appSelector-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-left: -8px !important; /* Adjusting for the gap */
    margin-right: -8px !important; /* Adjusting for the gap */
}

.appSelector-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    align-items: center;
    transition: background-color 0.3s;
    text-align: center;
    /* gap: 0px; */
    justify-content: center;
    width: 110px;
    height: 110px;
    /* align-content: center; */
    border-radius: 15px;
    border: 1px solid #D9D9D9;

}

.appSelector-item:hover {
    background-color: rgba(241, 136, 5, 0.2);;
    border-radius: 15px;
}

.appSelector-item-selected {
    background-color: rgba(255, 74, 0, 0.05);
    /*color: white;*/
    border-radius: 15px;
    border: 1px solid #FF4A00;

}

.appSelector-thumbnail {
    width: 48px;
    height: 48px;
    /*margin: 10px auto;*/
}

.appSelector-item-label {
    font-size: 14px;
    text-align: center;
    /* white-space: nowrap; */
    margin-top: 4px;
    font-weight: 700;
}

.appSelector-selected-item .appSelector-item-label  {
    /*display: flex;*/
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    margin: 0;
    align-items: center;
    text-align: center;
}


.welcome-modal .modal-content {
    max-width: 600px !important;
    min-block-size: max-content;
    padding: 30px 0 0 0;
    min-width: fit-content !important;

}

.welcome-modal .modal-body {
    margin-bottom: 6px;
 }

.welcome-modal-title {
    font-weight: 700;
    font-size: 30px;
    color: #0F1429;
    /*margin-top: 2px;*/
    margin-bottom: 0;
    margin-top: 32px;
}

.welcome-modal-text {
    font-weight: 400;
    font-size: 18px;
    color: #4F5674;
    margin-bottom: 32px;
}

.welcome-modal-header {
    font-weight: 700;
    font-size: 30px;
    line-height: 40px;
    align-content: center;
    margin-top: 28px;
}

.welcome-modal-option-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-right: 8px;
    margin-left: 8px;
}

.welcome-modal-option {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-items: self-start;
    position: relative;
    min-width: 100%;
}

.welcome-modal-option.selected {
    border-color: #FF4A00;
    background-color: #FFFFFF;
}

.welcome-modal-option-title {
    font-size: 16px;
    font-weight: 500;
    /*margin-bottom: 8px;*/
    color: #1C1E29;
    margin-bottom: auto;
}

.welcome-modal-option-text {
    font-size: 14px;
    color: #4F5674;
    text-align: left;
    font-weight: 500;
}

.welcome-modal-option:hover {
    background-color: #f0f0f0;
}

/* New styles for the selection indicator */
.welcome-modal-selection-indicator {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    padding: 5px;
    box-sizing: border-box;
}

.welcome-modal-option.selected .welcome-modal-selection-indicator {
    border-color: #FF4A00;
    background-color: #FF4A00;
}

.welcome-modal-option.selected .welcome-modal-selection-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background-color: #fff;
    border-radius: 50%;
}


/* START Specific styles for the success and failure modals */


.modal-purchase-success ,
.modal-purchase-fail  {
    /*height: 333px ;*/
    /*width: 480px ;*/
    min-width: 530px ;
}


.modal-purchase-success .modal-title,
.modal-purchase-fail .modal-title {
    font-size: 30px;
    font-weight: 700;
    margin-top: -50px;
    margin-bottom: 0;
}

.modal-purchase-success .prompt-modal-body,
.modal-purchase-fail .prompt-modal-body {
    font-size: 18px;
    font-weight: 400;
    /*margin: 0 24px;*/
    line-height: 28px;
    margin-bottom: -20px !important;
}

.modal-purchase-success .prompt-modal-button-wrapper .prompt-modal-button,
.modal-purchase-fail .prompt-modal-button-wrapper .prompt-modal-button {
    background-color: #FF4A00 !important;
    border: none !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    gap: 10 !important;
    transition: background-color 0.3s ease !important;
    margin: 0px 84px 24px 84px !important;
    width: 312px !important;
    height: 80px !important;
}

.modal-purchase-success .prompt-modal-button-wrapper .prompt-modal-button:hover,
.modal-purchase-fail .prompt-modal-button-wrapper .prompt-modal-button:hover {
    background-color: #E04300 !important;
}


/* END Specific styles for the success and failure modals */
.create-stripe-modal .modal-content {
    border-radius: 16px;
    padding: 24px;
    background-color: #fff;
}

.create-stripe-modal .prompt-modal-title {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    color: #0F1429;
    /*margin-bottom: 12px;*/
    margin-top: 0;
}

.custom-underline {
    text-decoration: underline !important;
}

.create-stripe-modal .prompt-modal-body {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    color: #4F5674;
}

.create-stripe-modal .prompt-modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    padding: 32px 8px 8px 8px;
}

.create-stripe-modal .prompt-modal-button-wrapper {
    display: flex;
    justify-content: space-between;
}

.create-stripe-modal .prompt-modal-button {
    background: #1C1E29;
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
    flex: 1;
    width: fit-content;
    margin-right: 20px;
    max-width: fit-content;
}

.create-stripe-modal .prompt-modal-button-alt {
    background-color: transparent;
    color: #1C1E29;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
    flex: 1;
    width: fit-content;
    margin-left: 20px;
    border: none ;
    outline: none ;
    max-width: min-content;
}

.create-stripe-modal .prompt-modal-footer {
    margin-top: 24px;
}

.paymentsTab-modal {
    margin: 100px auto;
}

.paymentsTab-modal .modal-content {
    min-height: 320px;
}

.paymentsTab-modal-header {
    display: flex;
    align-items: center;
}

.paymentsTab-modal-title {
    margin: 30px auto 0 30px;
}

.paymentsTab-modal-body {
    margin: 0 30px;
    line-height: 1.6;
    text-align: left;
}

.paymentsTab-modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* ===== Only for the Brief + Hints override modals ===== */

/* 1) Remove the global 600px cap and 100% width on the root .modal */
.prompt-modal.prompt-modal--edit-brief.modal,
.prompt-modal.prompt-modal--edit-hints.modal {
    max-width: none !important;
    width: auto !important;                  /* let .modal-dialog control width */
    padding-left: 0 !important;              /* avoid odd horizontal offsets */
    padding-right: 0 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* 2) Actually make the dialog 80% of the viewport and center it */
.prompt-modal--edit-brief .modal-dialog,
.prompt-modal--edit-hints .modal-dialog {
    max-width: 80vw !important;
    width: 80vw !important;
    margin: 15px auto !important;         /* horizontal center */
}

/* 3) Undo the global 480px width on .prompt-modal .modal-content */
.prompt-modal.prompt-modal--edit-brief .modal-content,
.prompt-modal.prompt-modal--edit-hints .modal-content {
    width: 100% !important;
    max-width: 100% !important;
}

/* 4) Body scroll without growing past viewport */
.prompt-modal--edit-brief .modal-body,
.prompt-modal--edit-hints .modal-body {
    max-height: calc(90vh - 140px);
    overflow: auto;
}

/* Allow scrollbars only inside Brief/Hints override modals */
.prompt-modal--edit-brief .generate-textarea,
.prompt-modal--edit-hints .generate-textarea {
    overflow: auto !important;
}

