@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.jgs-signup-container {
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 1200px;
}
.jgs-progress-steps {
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}
.jgs-progress-steps::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    z-index: 0;
}
.jgs-progress-steps::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: var(--progress-width, 33%);
    height: 4px;
    background: linear-gradient(90deg, #2D96FF, #2687e8);
    border-radius: 2px;
    transition: width 0.3s ease;
    z-index: 1;
}
.jgs-progress-cube {
    position: absolute;
    top: 2px;
    left: 0;
    z-index: 2;
    width: 17px;
    height: 20px;
    transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}
.jgs-progress-cube img {
    width: 100%;
    height: 100%;
    display: block;
}
@keyframes bounceCube {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-2px) rotate(3deg);
    }
    100% {
        transform: translateY(0) rotate(-3deg);
    }
}

.jgs-progress-cube.step-1 {
    left: 0; /* far left */
}
.jgs-progress-cube.step-2 {
    left: calc(50% - 8.5px); 
}
.jgs-progress-cube.step-3 {
    left: calc(100% - 17px); 
}
.jgs-progress-cube::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 10px !important;
    height: 10px !important;
    background: rgba(45, 150, 255, 0.15) !important;
    border-radius: 50% !important;
    filter: blur(4px) !important;
    transform: translate(-50%, -50%) !important;
    animation: trailFade 1.2s infinite !important;
}
@keyframes trailFade {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.8);
    }
}
.jgs-progress-cube::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    width: 2px !important;
    height: 2px !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
.jgs-progress-cube {
    position: absolute !important;
    z-index: 2 !important;
}
.jgs-progress-cube.transitioning::before {
    opacity: 1 !important;
    animation: fireTrail 0.8s steps(12) infinite !important;
}
@keyframes fireTrail {
    0% {
        box-shadow:
            -5px 0 4px 2px rgba(255, 69, 0, 0.8),
            -25px 0 8px 3px rgba(255, 165, 0, 0.6),
            -45px 0 12px 4px rgba(255, 215, 0, 0.4);
    }
    100% {
        box-shadow:
            -15px 0 6px 3px rgba(255, 69, 0, 0.7),
            -35px 0 10px 4px rgba(255, 165, 0, 0.5),
            -55px 0 14px 5px rgba(255, 215, 0, 0.3);
    }
}
.jgs-step {
    position: relative;
    padding-top: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    transition: all 0.3s ease;
    z-index: 2;
}
.jgs-steps-container {
    position: relative;
    min-height: 300px;
    width: 100%;
}
.jgs-step.active {
    color: #2D96FF;
    font-weight: 600;
    border-bottom: 2px solid #2D96FF;
    padding-bottom: 4px;
}
.jgs-step.clickable {
    cursor: pointer;
}
.jgs-step.clickable:hover {
    color: #2D96FF;
}
.jgs-type-selection {
    text-align: center;
    position: absolute;
    width: 100%;
    left: 0;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 2;
}
.jgs-type-selection.animate-out {
    opacity: 0;
    transform: translateX(-30px);
    z-index: 1;
}
.jgs-type-selection.animate-in {
    opacity: 0;
    transform: translateX(30px);
    z-index: 3;
}
.jgs-type-selection.animate-in.active {
    opacity: 1;
    transform: translateX(0);
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.jgs-type-selection h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #0083ff;
    margin-bottom: 2rem;
    letter-spacing: -.02em;
}
.jgs-type-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.jgs-type-button {
    padding: .5rem .5rem !important;
    background: #fff !important;
    border: 1px solid rgba(107, 114, 128, .3) !important;
    border-radius: 1rem !important;
    font-size: 1.125rem !important;
    color: #3a3a3a !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 3%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .75rem !important;
}
.jgs-type-button:hover {
    border-color: #2D96FF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(45, 150, 255, 0.08) !important;
}
.jgs-type-button-event {
    display: block !important;
    width: fit-content !important;
    margin: 0 auto !important;
    padding: 1rem 2rem !important;
    background-color: transparent !important;
    border: none !important;
    color: #2D96FF !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}
.jgs-type-button-event:hover {
    color: #2687e8 !important;
    transform: translateY(-1px) !important;
}
.jgs-plan-selection {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}
.jgs-plan-selection h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2b3b;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    background: #FAFAFA;
    background: linear-gradient(to bottom right, #FAFAFA 0%, #333333 84%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.jgs-billing-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}
.jgs-billing-toggle {
    display: inline-flex;
    background: #F3F4F6;
    padding: 0.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.jgs-toggle-button {
    padding: 0.75rem 2rem !important;
    border: none !important;
    background: transparent !important;
    color: #6B7280 !important;
    cursor: pointer !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}
.jgs-toggle-button.active {
    background: white !important;
    color: #1a2b3b !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #2D96FF !important;
}
.jgs-return-link {
    margin-top: 1rem;
    text-align: center;
}
.jgs-return-button {
    background: none !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    color: #6B7280 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}
.jgs-return-button:hover {
    color: #2D96FF !important;
}
.jgs-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.jgs-plan-card {
    background: linear-gradient(to bottom, #ffffff, #fafbff);
    border: 1px solid rgba(45, 150, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    min-height: 520px;
    display: flex;
    flex-direction: column;
}
.jgs-plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 150, 255, 0.08);
    border-color: rgba(45, 150, 255, 0.2);
}
.jgs-plan-card.recommended {
    border-color: rgba(45, 150, 255, 0.3);
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
}
.jgs-recommended-badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    background: linear-gradient(135deg, #2D96FF, #2687e8);
    color: white;
    padding: 0.375rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(45, 150, 255, 0.2);
}
.jgs-plan-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b3b;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.jgs-price {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2D96FF, #2687e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    line-height: 1.4;
}
.jgs-price-container {
    text-align: center;
}
.jgs-signup-fee {
    font-size: 0.9em;
    color: #665;
    margin-top: 4px;
    background: linear-gradient(135deg, #ffffff, #edf6ff);
    border-radius: 18px;
    margin-bottom: 10px;
}
.jgs-description {
    color: #4a5567;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 8px !important;

}
.jgs-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
    padding-left: 0px !important;
    margin-left: -10px;
}
.jgs-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.7;
}
.jgs-check {
    color: #2D96FF;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 150, 255, 0.08);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.jgs-select-plan-button {
    width: 100% !important;
    padding: 1rem !important;
    background: linear-gradient(135deg, #2D96FF, #2687e8) !important;
    color: white !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.01em !important;
    margin-top: auto !important;
}
.jgs-select-plan-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(45, 150, 255, 0.25) !important;
}
.jgs-select-plan-button:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInRightSpecial {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.jgs-type-selection.animate-in-special {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRightSpecial 0.3s ease-out forwards;
}
.jgs-step-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.jgs-step-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 1;
}
.jgs-step-content.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}
.jgs-step-content.outgoing {
    opacity: 0;
    transform: translateX(-30px);
    z-index: 0;
}

.jgs-status-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 500;
}
.jgs-status-active {
    background: #DCFCE7;
    color: #166534;
}
.jgs-status-inactive {
    background: #FEE2E2;
    color: #991B1B;
}
.jgs-registration {
    text-align: center;
    position: absolute;
    width: 100%;
    left: 0;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 2;
}
.jgs-registration h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2b3b;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}
.jgs-registration.animate-out {
    opacity: 0;
    transform: translateX(-30px);
    z-index: 1;
}
.jgs-registration.animate-in {
    opacity: 0;
    transform: translateX(30px);
    z-index: 3;
}
.jgs-registration.animate-out-reverse {
    opacity: 0;
    transform: translateX(30px);
    z-index: 1;
}
.jgs-registration.animate-in-reverse {
    opacity: 0;
    transform: translateX(-30px);
    z-index: 3;
}
.jgs-auth-modal {
    background: white !important;
    border-radius: 24px !important;
    width: 95% !important;
    max-width: 480px !important;
    max-height: 900px !important;
    position: relative !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
    z-index: 1000000 !important;
    overflow: auto !important;
}
.jgs-auth-container {
    padding: 48px 32px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    z-index: 100000 !important;
    position: relative;
     min-height: 400px;
}
.jgs-modal-close {
    position: absolute !important;
    right: 24px !important;
    top: 24px !important;
    background: #f1f5f9 !important;
    border: none !important;
    height: 32px !important;
    width: 32px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.jgs-form-wrapper {
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
    width: 100% !important;
}
.jgs-form-wrapper.active {
    display: block !important;
    opacity: 1 !important;
}
.jgs-auth-container label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
}
.jgs-auth-container label .required {
    color: #2d96ff !important;
    margin-left: 4px !important;
}
.jgs-auth-container input[type="text"],
.jgs-auth-container input[type="email"],
.jgs-auth-container input[type="password"],
.jgs-auth-container input[type="tel"] {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    color: #1e293b !important;
    margin-bottom: 16px !important;
    transition: all 0.2s ease !important;
}
.jgs-auth-container input:focus {
    outline: none !important;
    border-color: #2d96ff !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(45, 150, 255, 0.1) !important;
}
.jgs-auth-container input::placeholder {
    color: #94a3b8 !important;
}
.jgs-auth-container button[type="submit"] {
    width: 100% !important;
    padding: 14px !important;
    background: #2d96ff !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 8px !important;
}
.jgs-auth-container button[type="submit"]:hover {
    background: #1a85f0 !important;
}
.jgs-form-toggle {
    text-align: center !important;
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid #f1f5f9 !important;
}
.jgs-form-toggle p {
    color: #64748b !important;
    font-size: 14px !important;
    margin: 0 !important;
}
.jgs-toggle-btn {
    background: none !important;
    border: none !important;
    color: #2d96ff !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-left: 4px !important;
}
.woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 16px 0 !important;
    color: #64748b !important;
    font-size: 14px !important;
}
.woocommerce-LostPassword {
    text-align: center !important;
    margin-top: 16px !important;
}
.woocommerce-LostPassword a {
    color: #64748b !important;
    font-size: 14px !important;
    text-decoration: none !important;
}
.jgs-loading {
    text-align: center !important;
    padding: 2rem !important;
    color: #64748b !important;
    font-size: 1rem !important;
}
.woocommerce-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    margin-bottom: 24px !important;
    font-size: 14px !important;
}
.jgs-error {
    padding: 1rem !important;
    background-color: #fee2e2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 0.5rem !important;
    color: #991b1b !important;
    margin: 1rem 0 !important;
}
.jgs-auth-container form {
    display: block !important;
    width: 100% !important;
}
.jgs-auth-container .woocommerce-form-register,
.jgs-auth-container .woocommerce-form-login {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.jgs-auth-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  padding: 24px !important;
}

.jgs-auth-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.jgs-auth-modal {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;

}

.jgs-auth-modal.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.jgs-plans-grid > .jgs-plan-card:only-child {
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .jgs-progress-steps {
        width: 100%;
    }
    .jgs-type-buttons {
        grid-template-columns: 1fr;
    }
    .jgs-plans-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .jgs-plan-card {
        margin-bottom: 1rem;
        min-height: auto;
    }
    .jgs-toggle-button {
        padding: 0.75rem 1.5rem !important;
    }
    .jgs-billing-toggle {
        position: sticky;
        top: 60px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        padding: 1rem;
        z-index: 10;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin: -1rem -1rem 1rem -1rem;
        transition: box-shadow 0.3s ease;
    }
    .jgs-billing-toggle.scrolled {
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .jgs-steps-container {
        min-height: 400px;
    }
     .jgs-features {
        padding-left: 0px !important;
        margin-left: -10px;
        margin-top: -10px;
    }
    .jgs-plans-grid > .jgs-plan-card:only-child {
        max-width: 100%;
        margin: 0;
    }
    
    .jgs-plan-selection[data-type="single_event"] .jgs-plans-grid {
        max-width: 100%;
    }
    .jgs-auth-container {
    padding: 0 !important;
    }

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .jgs-plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Center single plan on tablet */
    .jgs-plans-grid > .jgs-plan-card:only-child {
        grid-column: 1 / -1;
        max-width: 65%;
        margin: 0 auto;
    }

    .jgs-plans-grid > p {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    color: #6B7280;
    font-size: 1.1rem;
    padding: 2rem 0;
   }
}
/* Desktop */
@media (min-width: 1025px) {
    .jgs-plan-selection[data-type="single_event"] .jgs-plans-grid {
        grid-template-columns: 1fr;
        max-width: 45%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .jgs-plans-grid > .jgs-plan-card:only-child {
        max-width: 50%;
        margin: 0 auto;
    }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes textShimmer {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.animate-shimmer {
  background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

.animate-text-shimmer {
  background: linear-gradient(90deg, #6B7280, #9CA3AF);
  -webkit-background-clip: text;
  color: transparent;
  animation: textShimmer 2s infinite ease-in-out;
  display: block;
}