/**
* Copyright (c) 2024 More Than Captcha All Rights Reserved
* @author     : HemathKumar R
* @description: Registration module revamp
*/

input[name="plan"],
input[name="privacy-policy-checkbox"] {
    accent-color: #666BFF;
}

input[name="privacy-policy-checkbox"] {
    transform: scale(1.2);
    margin-top: 5px;
}

#google-signup-btn {
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; 
    display: none;
}

#spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
  
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}

.input {
    border: none;
    border: 1px solid #C5D6DE;
    border-radius: 6px;
    background-color: transparent;
    padding: 10px;
    color: #040A1A !important;
}

.popover {
    left: -40px !important;
    font-family: Poppins,sans-serif;
    font-size: 16px;
}

.dot-typing {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #FFF;
    color: #FFF;
    box-shadow: 9984px 0 0 0 #FFF, 9999px 0 0 0 #FFF, 10014px 0 0 0 #FFF;
    animation: dot-typing 1.5s infinite linear;
    margin: auto;
}
  
  @keyframes dot-typing {
    0% {
      box-shadow: 9984px 0 0 0 #FFF, 9999px 0 0 0 #FFF, 10014px 0 0 0 #FFF;
    }
    16.667% {
      box-shadow: 9984px -10px 0 0 #FFF, 9999px 0 0 0 #FFF, 10014px 0 0 0 #FFF;
    }
    33.333% {
      box-shadow: 9984px 0 0 0 #FFF, 9999px 0 0 0 #FFF, 10014px 0 0 0 #FFF;
    }
    50% {
      box-shadow: 9984px 0 0 0 #FFF, 9999px -10px 0 0 #FFF, 10014px 0 0 0 #FFF;
    }
    66.667% {
      box-shadow: 9984px 0 0 0 #FFF, 9999px 0 0 0 #FFF, 10014px 0 0 0 #FFF;
    }
    83.333% {
      box-shadow: 9984px 0 0 0 #FFF, 9999px 0 0 0 #FFF, 10014px -10px 0 0 #FFF;
    }
    100% {
      box-shadow: 9984px 0 0 0 #FFF, 9999px 0 0 0 #FFF, 10014px 0 0 0 #FFF;
    }
  }

.popover-body ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popover-body li {
    display: flex;
    align-items: start;
    gap: 10px;
}

.popover-body a {
    text-decoration: underline !important;
}

.error {
    color: red;
    display: block;
}

.mobile-only {
    display: block;
}

#signup {
    padding: 10px 0;
}

.logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.signup-fields {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.signup-fields .field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.plan-container {
    background-color: #666BFF;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: relative;
}

.plan-container h2 {
    color: #FFF;
    font-size: 18px;
    text-align: center;
}

.gold-cards-container {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    position: relative;
}

.left-gold-card {
    border-right: 1px solid #000;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    background: linear-gradient(0.25turn, #FFF7E4, #F8B60A);
    padding: 5px 10px;
}

.right-gold-card {
    border-left: 1px solid #000;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    background: linear-gradient(0.25turn, #F8B60A, #FFF7E4);
    padding: 5px 10px;
}

.billing-cycle-container {
    margin: 25px 0;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.billing-cycle-container .checkbox-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    color: #FFF;
    font-weight: 500;
    margin-bottom: 0px;
}

.checkbox-slide input+label, .checkbox-toggle input+label {
    min-height: 24px !important;
}

.checkbox-toggle input+label:before {
    background-color: #9AA4FF;
    padding: 2px;
    height: 24px;
    width: 46px;
}

.checkbox-toggle input:checked+label:before {
    background-color: #9AA4FF;
}

.checkbox-toggle input+label:after {
    top: 1px;
    left: 3px;
}

.savings {
    padding: 3px 5px;
    background-color: #FFF;
    color: #666BFF;
    border-radius: 3px;
    font-weight: bold;
}

.plan-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 60px;
    place-items: center;
    /* padding: 0 20px; */
}

.plan-card {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #FFF;
    border-radius: 10px;
    gap: 20px;
    box-shadow: 3px 3px 10px #575757;
    cursor: pointer;
    width: 160px;
    height: 65px;
    position: relative;
    transition: box-shadow 0.2s;
}

.plan-card.pill::before {
    content: attr(data-pill-text);
    position: absolute;
    background-color: #FFF;
    border: 1.5px solid #000;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 20px;
    font-weight: bold;
    color: #666BFF;
    top: -8px;
    left: 15px;
}

.plan-card:has(input:checked) {
    border: 2px solid #000;
    box-shadow: #1c1c1c 0 0 10px 0px;
}

.plan-card:nth-child(odd) {
    justify-self: end;
}

.plan-card:nth-child(even) {
    justify-self: start;
}

.plan-card .plan-card-header {
    height: 100%;
}

.plan-card .plan-card-header .plan-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.plan-card .plan-card-header .plan-meta .plan-name-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-card .plan-card-header .plan-meta .plan-name {
    font-size: 14px;
    font-weight: 500;
}

.plan-card .plan-card-header .plan-meta .plan-price .dollar {
    font-size: 14px;
    font-weight: bold;
}

.plan-card .plan-card-header .plan-subtitle {
    display: none;
}

.plan-card .plan-features {
    display: none;
}

.plan-card .plan-features a {
    text-decoration: underline !important;
}

.plan-card .plan-features .plan-feature-item.hide {
    display: none;
}

.plan-helper {
    margin-top: 20px;
}

.plan-helper, .plan-helper a {
    color: #FFF;
    text-align: center;
}

.plan-helper a {
    font-weight: bold;
    text-decoration: underline;
}

.form-footer {
    padding: 0 40px;
}

.form-footer .user-acceptance-container {
    display: flex;
    gap: 10px;
    align-items: start;
    font-size: 16px;
    margin-top: 30px;
}


.signup-button-container {
    margin-top: 20px;
    text-align: center;
}

.signup-btn {
    background-color: #666BFF;
    color: #FFF;
    border: none;
    cursor: pointer;
    padding: 10px 80px;
    border-radius: 5px;
    min-height: 44px;
    min-width: 240px;
}

.signup-btn .dot-typing {
    display: none;
}

.signup-btn.loading {
    cursor: wait;
    opacity: 0.8;
}

.signup-btn.loading span,
.signup-btn.loading svg {
    display: none;
}

.signup-btn.loading .dot-typing {
    display: block;
}

.links {
    margin-top: 40px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.links .or-hr {
    display: flex;
    gap: 15px;
    align-items: center;
    color: #666BFF;
}

.links .or-hr .hr {
    height: 1px;
    width: 20px;
    background-color: #DBDBDB;
}


@media only screen and (min-width: 1000px) {
    .mobile-only {
        display: none;
    }

    #signup {
        display: grid;
        grid-template:
            "logo plan"
            "form plan"
            "footer plan";
        
        padding: 0 0;
        height: 100vh;
    }

    .logo-container {
        grid-area: logo;
        width: 400px;
        margin: auto;
        position: relative;
        top: 35%;
    }
    
    .signup-fields {
        grid-area: form;
        width: 400px;
        margin: auto;
    }

    .plan-container {
        grid-area: plan;
        padding: 20px;
        position: relative;
        height: 100vh;
    }

    .form-footer {
        grid-area: footer;
        width: 400px;
        margin: auto;
        position: relative;
        top: -15%;
    }

    .plan-cards-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        place-content: center;
        height: 100%;
        margin-top: 0;
    }

    .billing-cycle-container {
        position: unset;
        top: 5px;
        left: 0;
        transform: unset;
        width: auto;
        margin: 0;
    }

    .gold-cards-container {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .left-gold-card,
    .right-gold-card {
        position: relative;
    }

    .left-gold-card {
        left: -20px;
    }

    .right-gold-card {
        right: -20px;
    }

    .plan-card {
        display: flex;
        flex-direction: column;
        padding: 20px;
        background-color: #FFF;
        border-radius: 10px;
        gap: 20px;
        box-shadow: 3px 3px 10px #575757;
        cursor: pointer;
        width: unset;
        height: 100%;
        transition: box-shadow 0.2s;
        /* min-width: 400px; */
    }

    .plan-card.pill::before {
        border: 2px solid #000;
        font-size: 12px;
        padding: 3px 10px;
        top: -14px;
        left: 15px;
    }

    .plan-card:has(input:checked) {
        border: 4px solid #000;
        box-shadow: #1c1c1c 0 0 30px 0px;
    }

    .plan-card .plan-card-header {
        height: unset;
    }

    .plan-card .plan-card-header .plan-meta {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        height: unset;
    }

    .plan-card .plan-card-header .plan-subtitle {
        display: unset;
    }    

    .plan-card .plan-card-header .plan-meta {
        display: flex;
        justify-content: space-between;
    }

    .plan-card .plan-card-header .plan-meta .plan-name-selector {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .plan-card .plan-card-header .plan-meta .plan-name,
    .plan-card .plan-card-header .plan-meta .plan-price .dollar {
        font-size: 20px;
    }

    .plan-card .plan-card-header .plan-meta input[type="radio"] {
        -ms-transform: scale(1.5); /* IE 9 */
        -webkit-transform: scale(1.5); /* Chrome, Safari, Opera */
        transform: scale(1.5);
    }    

    .plan-card .plan-card-header .plan-subtitle {
        margin-bottom: 0.5rem;
        margin-top: 5px;
        color: #3D4355;
    }

    .plan-card .plan-features {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: none;
    }
    
    .plan-card .plan-features .plan-feature-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }    

    .plan-card .plan-features .plan-feature-item .plan-feature {
        font-size: 14px;
    }

    .plan-card .plan-features .plan-feature-item svg {
        width: 20px !important;
        height: 20px !important;
    }

    .plan-card .plan-features {
        gap: 10px;
    }
}

@media only screen and (min-width: 1400px) {
    .gold-cards-container {
        font-size: 14px;
    }

    .left-gold-card,
    .right-gold-card {
        line-height: 1.7rem;
    }

    .plan-card .plan-card-header .plan-meta .plan-name,
    .plan-card .plan-card-header .plan-meta .plan-price .dollar {
        font-size: 24px;
    }

    .plan-card .plan-card-header .plan-subtitle {
        margin-bottom: 1rem;
    }

    .plan-card .plan-features .plan-feature-item .plan-feature {
        font-size: 16px;
    }

    .plan-card .plan-features {
        gap: 20px;
    }
}

@media only screen and (min-height: 700px) {
    .plan-card .plan-features {
        gap: 5px !important;
    }
}

@media only screen and (min-height: 900px) {
    .plan-card .plan-features {
        gap: 15px !important;
    }

    .plan-container h2 {
        display: block;
    }
}








/* Email verification */

#email-verification {
    /* Will be set in JS */
    /* display: flex; */
    display: none;
    flex-direction: column;
    padding-top: 20px;
}

#email-verification #email-verification-form {
    margin-bottom: 40px;
}

#email-verification .plan-card.plan-card-full {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #FFF;
    border-radius: 10px;
    gap: 20px;
    box-shadow: 3px 3px 10px #575757;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

#email-verification .plan-card.plan-card-full .plan-card-header .plan-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: unset;
}

#email-verification .plan-card .plan-card-header .plan-meta .plan-name,
#email-verification .plan-card .plan-card-header .plan-meta .plan-price .dollar {
        font-size: 20px;
}

#email-verification .plan-card.plan-card-full .plan-card-header .plan-subtitle {
    display: unset;
}

#email-verification .plan-card.plan-card-full .plan-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: none;
}

#email-verification header {
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

#email-verification header h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
}

#email-verification .email-container {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    align-items: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

#email-verification .email-container .email {
    /* padding: 3px;
    border: 1px solid #000;
    border-radius: 5px; */
    font-weight: 600;
}

#email-verification .email-container a {
    text-decoration: underline;
    font-size: 12px;
}

#email-verification .verification-container {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#email-verification .verification-container input {
    width: 100%;
}

#email-verification .verification-container button.resend-container {
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: max-content;
}

#email-verification .signup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 60px;
    line-height: 0.8rem;
}

#email-verification #selected-plan {
    background-color: #666BFF;
    padding: 25px;
    position: relative;
}

#email-verification #selected-plan h2 {
    color: #FFF;
    font-size: 18px;
    text-align: center;
}

#email-verification .billing-cycle-container {
    margin-top: 40px;
}

#email-verification .plan-card {
    margin-top: 60px;
}


@media only screen and (min-width: 1000px) {
    #email-verification {
        flex-direction: row;
        width: 100vw;
        padding: 0 !important;
    }

    #email-verification #email-verification-form {
        flex: 1;
        padding: 0 !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #email-verification .signup-btn {
        line-height: 1rem;
    }

    #email-verification #email-verification-form,
    #email-verification #selected-plan {
        flex: 1;
        height: 100vh;
    }

    #email-verification .plan-card {
        height: max-content !important;
        max-width: 300px;
    }

    #email-verification #selected-plan {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #email-verification .logo-container,
    #email-verification .form-footer {
        position: static !important;
        top: unset;
        margin: unset;
    }

    #email-verification .verification-container {
        min-width: 40%;
    }

    #email-verification header {
        margin-bottom: 10px;
    }

    #email-verification header, #email-verification .email-container {
        padding: 0;
        min-width: 35%;
    }
}

@media only screen and (min-height: 700px) {
    #email-verification .plan-features {
        gap: 15px !important;
    }
}