/* ==========================================================
   CoHostMarket Sign Up Popup
   ========================================================== */

.csm-signup-overlay {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 40px 20px;
    background: rgba(38, 33, 28, 0.78);
    align-items: center;
    justify-content: center;
}

.csm-signup-overlay.is-open {
    display: flex;
}

.csm-signup-modal {
    width: 100%;
    max-width: 980px;
    margin: auto;
    position: relative;
}

.csm-step {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.csm-step-role {
    padding: 36px 40px;
    text-align: center;
}

.csm-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0 !important;
    border-radius: 50%;
    background: transparent;
    color: #6f6a62;
    font-size: 28px;
    line-height: 30px;
    cursor: pointer;
}

.csm-modal-close:hover {
    background: #f4f2ec;
    color: #008489;
}

.csm-step h2 {
    margin: 0 0 8px;
    color: #1a1712;
    font-size: 24px;
    font-weight: 700;
}

.csm-modal-sub {
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeece5;
    color: #6f6a62;
    font-size: 14px;
}

.csm-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
    text-align: left;
}

.csm-role-card {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e2e0d8 !important;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.csm-role-card:hover {
    transform: translateY(-3px);
    border-color: #00a8b5;
}

.csm-role-card.selected {
    padding: 19px;
    border: 2px solid #008489 !important;
    background: #e1f5ee;
}

.csm-role-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.csm-role-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid #c7c3ba;
    border-radius: 50%;
}

.csm-role-card.selected .csm-role-radio {
    border-color: #008489;
}

.csm-role-radio-dot {
    display: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #008489;
}

.csm-role-card.selected .csm-role-radio-dot {
    display: block;
}

.csm-role-icon,
.csm-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #008489;
    color: #fff;
}

.csm-role-title {
    flex: 1;
    min-width: 0;
    color: #008489;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.csm-role-desc {
    display: -webkit-box;
    min-height: 3.9em;
    margin: 0;
    overflow: hidden;
    color: #4a463d;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.csm-btn-amber {
    display: block;
    width: 100%;
    padding: 14px;
    border: 0 !important;
    border-radius: 10px;
    background: #f5b942;
    color: #412402;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}
.csm-btn-amber:hover {
    background: #f5b942 !important;
    color: #412402 !important;
}
.csm-btn-amber:hover:not(:disabled) {
    transform: translateY(-2px);
}

.csm-btn-amber:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.csm-modal-footer {
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 1px solid #eeece5;
    color: #4a463d;
    font-size: 14px;
    text-align: center;
}

.csm-modal-footer a {
    color: #008489;
    font-weight: 700;
    text-decoration: none;
}

.csm-modal-footer a:hover {
    text-decoration: underline;
}

/* Step 2 */
.csm-step-form {
    max-width: 440px;
    margin: auto;
    padding: 28px 36px;
}

.csm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 16px;
    padding: 0;
    border: 0 !important;
    background: transparent;
    color: #6f6a62;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.csm-back-link:hover {
    color: #008489;
}

.csm-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.csm-form-icon {
    width: 40px;
    height: 40px;
}

.csm-form-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1712;
}

.csm-step-form .csm-modal-sub {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: 0;
    text-align: left;
}

.csm-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #e2e0d8 !important;
    border-radius: 10px;
    background: #fff !important;
    color: #26211c !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.csm-social-btn:hover {
    border-color: #00a8b5 !important;
    background: #f4fbf9 !important;
    text-decoration: none;
    color: #26211c !important;
}

.csm-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

.csm-divider span {
    color: #8a8578;
    font-size: 12px;
    font-weight: 700;
    text-transform: lowercase;
}

.csm-divider::before,
.csm-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eeece5;
}

.csm-field {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid #e2e0d8;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #26211c;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.csm-field:focus {
    border-color: #008489;
    box-shadow: 0 0 0 3px rgba(0, 132, 137, .12);
}

.csm-field-row {
    display: flex;
    gap: 10px;
}

.csm-field-row .csm-field {
    width: 100%;
}

.csm-hint {
    margin: -2px 0 14px;
    color: #8a8578;
    font-size: 12px;
    line-height: 1.4;
}

.csm-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.csm-checkbox-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.csm-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
    border: 2px solid #c7c3ba;
    border-radius: 5px;
    transition: background .15s ease, border-color .15s ease;
}

.csm-checkbox svg {
    display: none;
    width: 12px;
    height: 12px;
    stroke: #fff;
}

.csm-checkbox-input:checked + .csm-checkbox {
    border-color: #008489;
    background: #008489;
}

.csm-checkbox-input:checked + .csm-checkbox svg {
    display: block;
}

.csm-checkbox-text {
    color: #6f6a62;
    font-size: 13px;
    line-height: 1.5;
}

.csm-checkbox-text a {
    color: #008489;
    font-weight: 700;
    text-decoration: none;
}

.csm-checkbox-text a:hover {
    text-decoration: underline;
}

.csm-message {
    min-height: 0;
    margin: -4px 0 10px;
    font-size: 13px;
    line-height: 1.4;
}

.csm-error {
    color: #c0392b;
}

.csm-success {
    color: #218c5a;
}

.csm-loading-btn {
    cursor: wait;
}

.csm-signup-overlay.csm-is-closing .csm-signup-modal {
    opacity: 0;
}


/* Responsive */
@media (max-width: 900px) {
    .csm-role-grid {
        grid-template-columns: 1fr;
    }

    .csm-step-role {
        padding: 28px 24px;
    }

    .csm-role-title {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .csm-signup-overlay {
        align-items: flex-start;
        padding: 20px 12px;
    }

    .csm-step-role,
    .csm-step-form {
        padding: 24px 18px;
    }

    .csm-role-grid {
        gap: 12px;
    }

    .csm-role-card {
        padding: 16px;
    }

    .csm-role-card.selected {
        padding: 15px;
    }

    .csm-field-row {
        flex-direction: column;
        gap: 0;
    }

    .csm-step-form {
        max-width: 440px;
    }
}


/* Login Popup CSS */
#signIn-two-step-verification .modal-dialog,
#forgotPassword .modal-dialog,
#signIn .modal-dialog {
    background: #fff;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    border-radius: 16px;
}
#signIn-two-step-verification .modal-content,
#forgotPassword .modal-dialog .modal-content {
    padding: 0;
    border-radius: 16px;
    box-shadow: none;
}
#loginFormWP {
    padding: 0;
}
#forgotPassword .modal-header:after, 
#forgotPassword .modal-header:before {
    display: none;
}
#signIn-two-step-verification .modal-header button.close,
#forgotPassword .modal-header button.close,
#signIn .modal-header button.close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0 !important;
    border-radius: 50%;
    background: transparent;
    color: #6f6a62;
    font-size: 28px !important;
    line-height: 30px;
    cursor: pointer;
    opacity: 1;
}
.modal-header {
    position: relative;
    z-index: 1;
}
#signIn-two-step-verification h4,
#forgotPassword .signUpIn h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    color: #1a1712;
}
#signIn .signUpIn a.googlePlus,
#signIn .signUpIn a.faceBook {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #e2e0d8 !important;
    border-radius: 10px;
    background: #fff !important;
    color: #26211c !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
#signIn .signUpIn a.faceBook:hover, 
#signIn .signUpIn a.googlePlus:hover {
    border-color: #00a8b5 !important;
    background: #f4fbf9 !important;
    text-decoration: none;
    color: #26211c !important;
}
#signIn .signUpIn a.googlePlus img,
#signIn .signUpIn a.faceBook img {
    max-width: 16px;
    max-height: 16px;
}
#signIn .or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}
#signIn .or::before, 
#signIn .or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eeece5;
}
#signIn .or span {
    color: #8a8578;
    font-size: 12px;
    font-weight: 700;
    text-transform: lowercase;
}
#signIn-two-step-verification #verification_error_message:empty,
#forgotPassword #forgot_pass_success:empty,
#forgotPassword #forgot_pass_error:empty,
#signIn #signin_error_message:empty, 
#signIn #signin_success_message:empty {
    margin: 0;
}
#forgotPassword .image_box input,
#signIn .image_box input {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid #e2e0d8;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #26211c;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
#forgotPassword .image_box input:focus,
#signIn .image_box input:focus {
    border-color: #008489;
    box-shadow: 0 0 0 3px rgba(0, 132, 137, .12);
}
#forgotPassword .image_box i.fa,
#signIn .image_box i.fa {
    display: none !important;
}
#forgotPassword .remember,
#signIn .remember {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
#forgotPassword .remember {
    margin-bottom: 0;
}
#forgotPassword .remember .right,
#signIn .remember .right {
    margin-left: auto;
}
#signIn .remember .checkboxStyle {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid #c7c3ba;
    margin-right: 10px;
    top: 0;
    overflow: hidden;
}
#signIn .remember .checkboxStyle:has(input[type=checkbox]:checked) {
    border-color: #008489;
}
#signIn .remember label {
    margin: 0;
    font-size: 13px;
    color: #6f6a62;
    line-height: 1.5;
}
#forgotPassword .remember .left a,
#signIn .remember .right a {
    color: #008489;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.5;
}
#signIn .signUpIn .email {
    background: #f5b942;
    color: #412402;
    border: none;
    font-size: 15px;
    font-weight: 700;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease;
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}
#signIn .signUpIn .email:hover {
    transform: translateY(-2px);
    text-decoration: none;
} 
#signIn .signUpIn .forgotPass {
    color: #008489;
    font-weight: 700;
    font-size: 13px;
}
#forgotPassword .remember .right .submitBtn1 {
    color: #008489;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.5;
    background-color: transparent;
    border: none;
    margin: 0;
    padding: 0;
}
#forgotPassword .modal-content {
    border: none;
}
#forgotPassword .resetPassDesc {
    font-size: 14px;
    color: #6f6a62;
    margin: 5px 0 15px 0;
}
#forgotPassword .modal-body {
    padding: 0;
    border: none;
}
#forgotPassword .resetPassDesc:after {
    display: none;
}
#signIn #signin_error_message, 
#signIn #signin_success_message,
#forgotPassword #forgot_pass_error,
#forgotPassword #forgot_pass_success {
    font-size: 14px;
}
#two-step-verification-methods .verification-method-options {
    margin: 25px 0px;
}


@media (max-width: 600px) {
    #signIn-two-step-verification .modal-dialog,
    #forgotPassword .modal-dialog, 
    #signIn .modal-dialog {
        max-width: calc(100% - 20px);
    }
}