/* Registration Page Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,600;9..40,700&family=Playfair+Display:wght@700&display=swap');

.registration-container {
    min-height: 100vh;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    max-width: 979px;
    margin: 0 auto;
}

/* Left Column: Branding */
.registration-left {
    width: 30%;
     display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 60px;
   
    position: relative;
    overflow: hidden;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

.registration-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.branding-content {
    max-width: 500px;
    z-index: 1;
    position: relative;
}

.branding-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
}

.branding-logo .logo-icon {
    width: 48px;
    height: 48px;
    background-color: #24436B;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
}

.branding-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.branding-title {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2em;
    color: white;
    margin: 0 0 24px 0;
}

.branding-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.branding-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.branding-feature i {
    font-size: 20px;
    color: #7EE081;
    flex-shrink: 0;
}

/* Right Column: Registration Form */
.registration-right {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
    
}

.registration-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1024px;
    padding: 32px 48px;
}

/* Progress Indicator */
.progress-indicator {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 32px;
    margin-bottom: 35px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 48px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
    background-color: #E5E7EB;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step-item.completed .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step-item.completed .step-number i {
    font-size: 20px;
}

.step-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    text-align: center;
}

.step-item.active .step-label {
    color: var(--text-dark);
}

.step-connector {
    width: 182.42px;
    height: 2px;
    background-color: #E5E7EB;
    margin: 0 8px;
    margin-top: -25px;
    transition: all 0.3s ease;
}

.step-connector.completed {
    background-color: var(--primary-color);
}

/* Step Content */
.step-content {
    min-height: 400px;
}

.step-header {
    text-align: center;
    margin-bottom: 48px;
}

.step-header h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2em;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.step-header p {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    margin: 0;
}

/* Registration Form */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.form-group-large {
    grid-column: span 2;
}

.form-group-half {
    grid-column: span 1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1em;
}

.form-control {
    width: 100%;
    padding: 4px 12px;
    background-color: white;
    border: 1px solid #00000059;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: all 0.2s ease;
    height: 36px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
}

.form-control::placeholder {
    color: var(--text-gray);
}

.form-select {
    width: 100%;
    padding: 4px 12px;
    background-color: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: all 0.2s ease;
    height: 36px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23717182' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
}

.form-select.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-hint {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    margin-top: 4px;
}

.form-error {
    font-size: 14px;
    font-weight: 400;
    color: #dc3545;
    margin-top: 4px;
    display: block;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 20px;
    pointer-events: none;
}

/* Stripe Elements styling */
.card-element {
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #00000059;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.card-element:focus-within {
    border-color: var(--primary-color);
    outline: none;
}

.card-element.StripeElement--invalid {
    border-color: #dc3545;
}

.card-element.StripeElement--complete {
    border-color: #28a745;
}

.stripe-powered-by {
    text-align: right;
    font-size: 14px;
    margin-top: -17px !important;
}

/* Plans Grid */
.plans-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    margin-bottom: 48px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.plans-grid::-webkit-scrollbar {
    height: 6px;
}

.plans-grid::-webkit-scrollbar-track {
    background: #E5E7EB;
    border-radius: 3px;
}

.plans-grid::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 3px;
}

.plans-grid::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

.plan-card {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 260px;
    flex-shrink: 0;
}

.plan-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(91, 124, 250, 0.15);
}

.plan-card.selected {
    border-color: var(--primary-color);
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(91, 124, 250, 0.2);
}

.plan-featured {
    border-color: rgba(36, 67, 107, 0.5);
    border-width: 1px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.plan-header h3 {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4em;
}

.plan-badge {
    background-color: #FF6B6B;
    color: white;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.33em;
    margin-left: 5px;
    margin-top: 2px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
}

.price-amount {
    font-size: 30px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.11em;
}

.price-period {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    line-height: 1.5em;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 14px;
    font-weight: 400;
    color: #364153;
    line-height: 1.50em;
}

.plan-features li i {
    color: #00A63E;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.plan-note {
    font-size: 12px;
    color: #6B7280;
    margin: 0 0 12px 0;
    font-style: italic;
    line-height: 1.4;
}

.btn-plan-select {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
}

/* Default state - transparent background */
.btn-plan-select.btn-plan-default {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-plan-select.btn-plan-default:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Selected state - blue background */
.btn-plan-select.btn-plan-selected {
    background-color: var(--primary-color);
    color: white;
}

.btn-plan-select.btn-plan-selected:hover {
    background-color: #1a2d4a;
}

/* Legacy support for Growth plan's btn-plan-primary class */
.btn-plan-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-plan-primary:hover {
    background-color: #1a2d4a;
}

/* Terms Container */
.terms-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.terms-content {
    font-size: 13px;
    background-color: #F9FAFB;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.terms-header {
    margin-bottom: 16px;
}

.terms-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.5em;
}

.terms-date {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.43em;
}

.terms-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms-section h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5em;
}

.terms-section p {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.3em;
}

.terms-acceptance {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terms-acceptance input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--bg-light);
    cursor: pointer;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

.terms-acceptance label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1em;
}

/* Plan Summary */
.plan-summary {
    background-color: #F9FAFB;
    border: 1px solid rgba(36, 67, 107, 0.5);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.plan-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.plan-summary-header h3 {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5em;
}

.plan-summary-price {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4em;
}

.plan-summary-note {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.43em;
}

/* Form Checkbox Group */
.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.form-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: #F4F9FF;
    cursor: pointer;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

.form-checkbox-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1em;
}

/* Billing Address Section */
.billing-address-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.billing-address-section .form-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px;
    width: 100%;
}

.billing-address-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 24px 0;
    line-height: 1.5em;
}

/* Payment Alert */
.payment-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 17px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
}

.payment-alert i {
    font-size: 16px;
    color: var(--text-dark);
    margin-top: 2px;
    flex-shrink: 0;
}

.payment-alert p {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.43em;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
}

.btn-back,
.btn-continue {
    width: 143.23px;
    height: 36px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back {
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
}

.btn-back:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-continue {
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
}

.btn-continue:hover {
    background-color: #1a2d4a;
}

.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .registration-container {
        flex-direction: column;
    }
    
    .registration-left {
        width: 100%;
        padding: 40px 60px;
    }
    
    .registration-right {
        width: 100%;
        padding: 24px;
    }
    
    .registration-card {
        padding: 24px 32px;
        max-width: 100%;
    }
    
    .plans-grid {
        min-width: 0;
    }

    .plan-card {
        min-width: 240px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group-large {
        grid-column: span 1;
    }
    
    .branding-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .registration-left {
        padding: 32px 24px;
    }
    
    .registration-right {
        padding: 16px;
    }
    
    .registration-card {
        padding: 24px;
    }
    
    .branding-title {
        font-size: 28px;
    }
    
    .branding-description {
        font-size: 14px;
    }
    
    .branding-feature {
        font-size: 14px;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .step-connector {
        display: none;
    }
    
    .step-header h2 {
        font-size: 24px;
    }
    
    .step-header p {
        font-size: 14px;
    }
    
    .plan-card {
        padding: 20px;
    }
    
    .terms-content {
        max-height: 300px;
    }
    
    /* Form rows stack on mobile */
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .billing-address-section .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .form-group-large,
    .form-group-half {
        grid-column: span 1 !important;
    }
}

.brand-bg-pattern {
    background-image: radial-gradient(#424242 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Inline styles moved from register.ejs */
.brand-content-wrapper {
    max-width: 500px;
}

.brand-divider {
    width: 80px;
    height: 4px;
    background-color: #000000;
    margin-bottom: 1rem;
}

.brand-description-text {
    font-size: 15px;
}

.brand-quote {
    font-size: 14px;
}

.brand-feature-text {
    font-size: 14px;
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
}

.form-error-hidden {
    display: none;
}

.billing-address-section-hidden {
    display: none;
}

.stripe-key-container {
    display: none;
}
