﻿@import url('variables.css');
@import url('flexbox.css');
@import url('styles.css');

/* ================================
               SIGNUP
   ================================ */

/* --------- BACKGROUND OVERRIDE --------- */
html, body {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 137, 209, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 180, 37, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 137, 209, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.02) 50%, transparent 60%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.01) 101px,
            rgba(255, 255, 255, 0.01) 102px
        );
    pointer-events: none;
    z-index: -1;
}
.container-signup {
    display: grid;
    grid-template-columns: 45% 55%;
    height: auto;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

/* --------- LEFT PANEL (SIGNUP INFO) --------- */
.signup-left {
    background-color: #a4defd;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.signup-description {
    align-self: flex-start;
    max-width: 100%;
    margin-top: 1.7rem;
    color: black;
    font-family: var(--font-family-subtitle);
    font-weight: var(--font-weight-subtitle);
    font-size: var(--font-size-subtitle);
}

.features-list {
    align-self: flex-start;
    max-width: 100%;
    margin-top: 0.3rem;
    color: #374151;
    font-family: var(--font-family-body);
    font-weight: 500;
    list-style: none;
    padding-left: 0;
}

    .features-list li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
    }

.check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

/* --------- QUICK ACCESS BUTTONS --------- */
.quick-access-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-self: flex-start;
    width: 100%;
    max-width: 280px;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #1f2937;
    text-decoration: none;
    font-family: var(--font-family-button);
    font-weight: var(--font-weight-button);
    font-size: var(--font-size-button);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.quick-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

.quick-btn:hover::before {
    left: 100%;
}

.quick-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-btn i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-btn:hover i {
    color: #0369a1;
    transform: scale(1.1);
}

.quick-btn span {
    font-weight: 600;
    letter-spacing: 0.025em;
}

.signup-left .watermark {
    position: absolute;
    bottom: -30px;
    right: 1px;
    max-width: 230px;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.img-dashboard {
    max-width: 80%;
    height: auto;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    display: block;
}

/* --------- RIGHT PANEL (FORM) --------- */
.signup-right {
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.signup-form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.signup-title {
    text-align: left;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

/* --------- FORM FIELDS --------- */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.3rem;
}

.input-group {
    flex: 1 1 45%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

    .input-group label {
        margin-bottom: 0.5rem;
        color: #1f2937;
        font-family: var(--font-family-body);
        font-weight: var(--font-weight-button);
        font-size: var(--font-size-button);
        letter-spacing: 0.025em;
    }

.input-wrapper {
    position: relative;
}

    .input-wrapper input {
        width: 100%;
        padding: 0.75rem 2.5rem 0.75rem 0.75rem;
        border: 2px solid #d1d5db;
        border-radius: 10px;
        font-size: var(--font-size-button);
        font-family: var(--font-family-body);
        box-sizing: border-box;
        background-color: #f9fafb;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        outline: none;
    }

    .input-wrapper input:focus {
        border-color: var(--primary-color);
        background-color: white;
        box-shadow: 0 0 0 3px rgba(0, 137, 209, 0.1);
        transform: translateY(-1px);
    }

    .input-wrapper input.valid {
        border-color: #10b981;
        background-color: #f0fdf4;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), 0 0 10px rgba(16, 185, 129, 0.3);
    }

    .input-wrapper input.invalid {
        border-color: #ef4444;
        background-color: #fef2f2;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15), 0 0 10px rgba(239, 68, 68, 0.3);
        animation: shake 0.3s ease-in-out;
    }

    .input-wrapper input.warning {
        border-color: #FFC107;
        background-color: #FFF8E1;
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15),
                    0 0 10px rgba(255, 193, 7, 0.4);
    }

        .input-wrapper input.warning + .icon {
            color: #FFC107;
        }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

    .input-wrapper .icon {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #6b7280;
        pointer-events: none;
        transition: color 0.3s ease;
        font-size: 0.875rem;
    }

    .input-wrapper input:focus + .icon,
    .input-wrapper input.valid + .icon {
        color: var(--primary-color);
    }

    .input-wrapper input.invalid + .icon {
        color: #ef4444;
    }

/* --------- SUBSCRIPTION SECTION --------- */
.subscription-title {
    font-family: var(--font-family-body);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: black;
}

.radio-with-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.radio-options {
    flex: 1 1 60%;
    min-width: 250px;
}

.radio-group {
    margin-bottom: 0.75rem;
}

    .radio-group label {
        display: flex;
        align-items: center;
        color: #374151;
    }

    .radio-group label,
    .checkbox-group label {
        font-family: var(--font-family-body);
        font-size: 0.9rem;
        color: #374151;
    }

    .radio-group input[type="radio"] {
        margin-right: 0.6rem;
        width: 18px;
        height: 18px;
        accent-color: var(--primary-color);
        cursor: pointer;
    }

.radio-image {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

    .radio-image img {
        max-width: 210px;
        height: auto;
        -webkit-user-select: none;
        user-select: none;
        margin-top: -50px;
    }

/* --------- TERMS CHECKBOX & BUTTON --------- */
.checkbox-group {
    margin-top: 0rem;
    font-size: 0.9rem;
    color: #374151;
}

    .checkbox-group label {
        display: flex;
        align-items: center; 
        gap: 0.75rem;
    }

    .checkbox-group input[type="checkbox"] {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        accent-color: var(--primary-color);
        cursor: pointer;
        align-self: center; 
        margin: 0; 
    }

    .checkbox-group .label-text {
        line-height: 1.4;
    }

    /* Link */
    .checkbox-group a.tos-link {
        color: var(--primary-color);
        text-decoration: underline;
        font-weight: 600;
        white-space: nowrap; 
    }

        .checkbox-group a.tos-link:hover,
        .checkbox-group a.tos-link:focus {
            text-decoration: none;
            color: #0056b3;
        }


.button-with-image {
    display: flex;
    align-items: center;
    margin-top: 0.1rem;
    margin-bottom: 1rem;
    justify-content: space-between;
}

.start-button {
    align-content: flex-start;
    background: #f4b425;
    color: white;
    font-weight: var(--font-weight-button);
    font-size: var(--font-size-button);
    padding: 0.9rem 1.2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: var(--font-family-button);
    gap: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 16px rgba(244, 180, 37, 0.3);
    overflow: hidden;
}

    .start-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .start-button:hover {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(244, 180, 37, 0.4);
    }

    .start-button:hover::before {
        left: 100%;
    }

    .start-button:active {
        transform: translateY(0);
        box-shadow: 0 4px 16px rgba(244, 180, 37, 0.3);
    }

    .start-button:disabled {
        cursor: not-allowed;
        opacity: 0.7;
    }

    .start-button .icon-container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        margin-left: 0.5rem;
    }

    .start-button .loading-spinner {
        display: none;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid #ffffff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        flex-shrink: 0;
    }

    .start-button.loading .btn-icon {
        display: none;
    }

    .start-button.loading .loading-spinner {
        display: block;
    }
    
    .start-button .button-text {
        transition: all 0.3s ease;
    }

    .start-button.processing {
        background-color: #2796d4;
        color: white;
    }

    .start-button.processing .loading-spinner {
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid #ffffff;
    }

    .start-button.success {
        background-color: #10b981;
        color: white;
    }

.btn-icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    bottom: 0.05rem;
}

.braintree-image {
    height: 2.5rem;
    -webkit-user-select: none;
    user-select: none;
}

/* --------- SECONDARY INFO STRIP --------- */
.container-secondary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    padding: 1.5rem;
    gap: 2rem;
    text-align: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.left-section {
    flex: 1;
    min-width: 250px;
    justify-content: flex-start;
}

.business-title {
    font-family: var(--font-family-body);
    font-size: 1.8rem;
    font-weight: 600;
    color: black;
    margin: 0;
    line-height: 1;
}

.depend {
    display: block;
    margin-top: 0.25rem;
}

.right-section {
    flex: 2;
    min-width: 300px;
}

.logos-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.logo-icon {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

    .logo-icon:hover {
        filter: grayscale(0%);
    }

.divider {
    height: 30px;
    width: 1px;
    background-color: #ccc;
}

/* --------- RESPONSIVE STYLES --------- */
@media screen and (max-width: 1024px) {
    .container-signup {
        grid-template-columns: 1fr;
        width: 95%;
        box-shadow: none;
        border-radius: 0;
    }

    .signup-left, .signup-right {
        padding: 1.5rem;
    }

    .radio-image img {
        margin-top: 0;
    }

    .start-button {
        width: 100%;
    }

    .button-with-image {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-access-buttons {
        margin-top: 1.25rem;
        gap: 0.6rem;
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .quick-btn {
        flex: 0 1 auto;
        min-width: 140px;
        padding: 0.65rem 0.9rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: calc(var(--font-size-title) * 0.8);
    }

    .signup-description {
        font-size: 1.2rem;
    }

    .features-list li {
        font-size: 0.85rem;
    }

    .quick-access-buttons {
        margin-top: 1rem;
        gap: 0.5rem;
        max-width: 100%;
    }

    .quick-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.6rem;
    }

    .quick-btn i {
        font-size: 0.9rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .input-group {
        min-width: 100%;
    }

    .radio-options {
        min-width: 100%;
    }

    .container-secondary {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
    }

    .business-title {
        font-size: 1.4rem;
    }

    .logo-icon {
        height: 30px;
    }
}

/* =====================================
           WELCOME MODAL STYLES
===================================== */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.welcome-modal.show {
    opacity: 1;
    visibility: visible;
}

.welcome-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-modal.show .welcome-modal-content {
    transform: scale(1) translateY(0);
}

.welcome-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.welcome-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.ninja-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.welcome-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 137, 209, 0.3));
    animation: logoFloat 2s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.welcome-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 137, 209, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

.welcome-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.welcome-title {
    font-family: var(--font-family-title);
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-title);
    color: #1f2937;
    margin: 0;
    background: linear-gradient(135deg, #1f2937 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlideUp 0.8s ease-out 0.3s both;
}

.welcome-title-warning {
    font-family: var(--font-family-title);
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-title);
    color: #1f2937;
    margin: 0;
    background: linear-gradient(135deg, #FFD54F 0%, #FFC107 50%, #FFB300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlideUp 0.8s ease-out 0.3s both;
}

@keyframes titleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-subtitle {
    font-family: var(--font-family-body);
    font-size: var(--font-size-navbar);
    font-weight: var(--font-weight-button);
    color: #6b7280;
    margin: 0;
    animation: subtitleSlideUp 0.8s ease-out 0.5s both;
}

.input-wrapper:has(#email.warning),
.input-wrapper:has(#email).warning {
    border-color: #FFC107 !important; 
    background-color: #FFF8E1 !important; 
}

@keyframes subtitleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-loader {
    margin-top: 1rem;
    animation: loaderFadeIn 0.8s ease-out 0.7s both;
}

@keyframes loaderFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.loader-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.3) translateY(-10px);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .welcome-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .welcome-logo {
        height: 60px;
    }
    
    .welcome-title {
        font-size: 1.6rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .welcome-glow {
        width: 90px;
        height: 90px;
    }
}

@media screen and (max-width: 480px) {
    .signup-title {
        font-size: 1.4rem;
    }

    .subscription-title {
        font-size: 0.95rem;
    }

    .checkbox-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .start-button {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .logo-container img {
        width: 150px;
    }

    .img-dashboard {
        max-width: 100%;
    }

    .quick-access-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .quick-btn {
        flex: 1;
        min-width: 100px;
        max-width: 120px;
        padding: 0.5rem 0.6rem;
        font-size: calc(var(--font-size-button) * 0.8);
        text-align: center;
        justify-content: center;
        gap: 0.4rem;
    }

    .quick-btn span {
        display: none;
    }

    .quick-btn i {
        font-size: 1.1rem;
        margin: 0;
    }

    .watermark {
        display: none;
    }
}

/* --------- BRAINTREE HOSTED FIELDS STYLES - VISUAL OVERRIDE --------- */

/* Force Braintree input wrappers to look exactly like normal inputs */
.input-wrapper:has(.btHostedField) {
    position: relative !important;
    /* Apply exact same styling as normal inputs */
    background-color: #f9fafb !important;
    border: 2px solid #d1d5db !important;
    border-radius: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 52px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: block !important;
}

/* Hover state */
.input-wrapper:has(.btHostedField):hover {
    border-color: #a3a3a3 !important;
    background-color: #ffffff !important;
}

/* Focus state - when user clicks inside */
.input-wrapper:has(.btHostedField):focus-within {
    border-color: #0089D1 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 137, 209, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Make Braintree iframe transparent so wrapper shows through */
.btHostedField {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.btHostedField iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    padding: 12px 40px 12px 12px !important;
    box-sizing: border-box !important;
}

/* Position icons correctly over Braintree fields */
.input-wrapper:has(.btHostedField) .icon {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #6b7280 !important;
    pointer-events: none !important;
    z-index: 100 !important;
    font-size: 0.875rem !important;
    transition: color 0.3s ease !important;
}

/* Icon color changes on focus */
.input-wrapper:has(.btHostedField):focus-within .icon {
    color: #0089D1 !important;
}

/* Match spacing to upper inputs */
#debitCreditCardsOuter .form-row {
    margin-bottom: 1rem;
}

#debitCreditCardsOuter .input-group {
    margin-bottom: 1rem;
}

/* Ensure labels are properly aligned */
#debitCreditCardsOuter label {
    text-align: left;
    margin-bottom: 0.5rem;
    display: block;
}

/* Recaptcha styling - small distance from inputs above */
.capcha {
    margin: 0.3rem 0 0.25rem 0;
    text-align: center;
}

.capcha p {
    font-family: 'Satoshi', sans-serif;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.1rem;
}

.capcha_side {
    display: flex;
    justify-content: center;
    margin: 0rem 0;
}

.g-recaptcha {
    display: inline-block;
}

/* Field info styling */
.field_info {
    font-family: 'Satoshi', sans-serif;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
    display: block;
}

/* Ultra minimal space between recaptcha and button */
.capcha + .button-with-image {
    margin-top: 0.1rem;
}

/* Minimal space between credit cards and recaptcha */
#debitCreditCardsOuter + .capcha {
    margin-top: -2rem;
    margin-bottom: 1rem;
}

/* --------- BRAINTREE VALIDATION STATES - MATCH EXISTING INPUT VALIDATION --------- */

/* Valid state for Braintree wrappers */
.input-wrapper:has(.btHostedField.valid),
.input-wrapper:has(.btHostedField).valid {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
}

.input-wrapper:has(.btHostedField.valid):hover,
.input-wrapper:has(.btHostedField).valid:hover {
    border-color: #059669 !important;
    background-color: #d1fae5 !important;
}

.input-wrapper:has(.btHostedField.valid) .icon,
.input-wrapper:has(.btHostedField).valid .icon {
    color: #10b981 !important;
}

/* Invalid state for Braintree wrappers */
.input-wrapper:has(.btHostedField.invalid),
.input-wrapper:has(.btHostedField).invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.input-wrapper:has(.btHostedField.invalid):hover,
.input-wrapper:has(.btHostedField).invalid:hover {
    border-color: #dc2626 !important;
    background-color: #fee2e2 !important;
}

.input-wrapper:has(.btHostedField.invalid) .icon,
.input-wrapper:has(.btHostedField).invalid .icon {
    color: #ef4444 !important;
}

/* Focused state overrides validation colors temporarily */
.input-wrapper:has(.btHostedField.focused),
.input-wrapper:has(.btHostedField).focused {
    border-color: #0089D1 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 137, 209, 0.1) !important;
    transform: translateY(-1px) !important;
}

.input-wrapper:has(.btHostedField.focused) .icon,
.input-wrapper:has(.btHostedField).focused .icon {
    color: #0089D1 !important;
}

/* Shake animation for payment errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

password-strength-indicator {
    font-family: var(--font-family-body);
}

/* --------- EMAIL DUPLICATE WARNING STYLES --------- */
.field-warning {
    font-family: var(--font-family-body);
    margin-top: 10px;
    padding: 12px 16px;
    background: #fef3cd;
    border: 1px solid #f6c23e;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

.field-warning .warning-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.field-warning .fas {
    color: #f6c23e;
    margin-top: 2px;
    flex-shrink: 0;
}

.field-warning strong {
    display: block;
    margin-bottom: 5px;
    color: #856404;
}

.field-warning p {
    margin: 0;
    color: #856404;
}

input.warning {
    border-color: #f6c23e !important;
    box-shadow: 0 0 0 2px rgba(246, 194, 62, 0.2) !important;
}

/* --------- DUPLICATE EMAIL MODAL STYLES --------- */
.duplicate-email-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.duplicate-email-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.duplicate-email-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.duplicate-email-modal .modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.duplicate-email-modal .warning-icon {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.duplicate-email-modal .modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    font-family: var(--font-family-subtitle);
}

.duplicate-email-modal .modal-body {
    padding: 24px;
    color: #4b5563;
    line-height: 1.6;
}

.duplicate-email-modal .modal-body p {
    margin: 0 0 16px 0;
}

.duplicate-email-modal .modal-body p:last-child {
    margin-bottom: 0;
}

.duplicate-email-modal .modal-body strong {
    color: #dc2626;
    font-weight: 600;
}

.duplicate-email-modal .modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

.duplicate-email-modal .btn-cancel,
.duplicate-email-modal .btn-continue {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 100px;
}

.duplicate-email-modal .btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.duplicate-email-modal .btn-cancel:hover {
    background: #e5e7eb;
}

.duplicate-email-modal .btn-continue {
    background: #dc2626;
    color: white;
}

.duplicate-email-modal .btn-continue:hover {
    background: #b91c1c;
}

/* Responsive */
@media (max-width: 768px) {
    .duplicate-email-modal .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .duplicate-email-modal .modal-footer {
        flex-direction: column;
    }
    
    .duplicate-email-modal .btn-cancel,
    .duplicate-email-modal .btn-continue {
        width: 100%;
    }

    .braintree-image {
        margin-top: 20px;
        width: 60%;
        height: auto;
        -webkit-user-select: none;
        user-select: none;
    }

    .button-with-image {
        flex-direction: column;
        align-items: center;
    }
}