/**
 * Bulk - Application Form Styles
 * World-class multi-step form design
 * 
 * COLOR USAGE GUIDELINES:
 * - Use var(--hero-text-light) for all descriptive text, body text, and secondary text
 * - Use var(--green-primary) for titles, active states, and emphasis
 * - Use var(--text-light) for labels and tertiary text
 * - DO NOT use var(--text-color) - it's grayish and doesn't match the green theme
 */

/* Apply Page Layout */
.apply-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--hero-bg);
}

.apply-page .header {
    background: rgba(40, 80, 46, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(220, 226, 193, 0.1);
}

/* Beta Banner */
.beta-banner {
    background: linear-gradient(135deg, rgba(220, 226, 193, 0.08) 0%, rgba(220, 226, 193, 0.04) 100%);
    border-bottom: 1px solid rgba(220, 226, 193, 0.15);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.beta-banner-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.beta-badge {
    display: inline-block;
    background: rgba(220, 226, 193, 0.15);
    color: var(--green-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(220, 226, 193, 0.25);
    text-transform: uppercase;
}

.beta-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: 1rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.beta-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--hero-text-light);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Main Container */
.apply-container {
    flex: 1;
    padding: 2rem 0 4rem;
}

.apply-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(220, 226, 193, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-primary) 0%, var(--green-hover) 100%);
    border-radius: 8px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(220, 226, 193, 0.25);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(220, 226, 193, 0.08);
    border: 2px solid rgba(220, 226, 193, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active .step-circle {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: #1a2e1f;
    box-shadow: 0 0 12px rgba(220, 226, 193, 0.35);
}

.progress-step.completed .step-circle {
    background: rgba(220, 226, 193, 0.25);
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.step-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s ease;
    opacity: 0.9;
}

.progress-step.active .step-label {
    color: var(--green-primary);
    opacity: 1;
}

/* Form Styles */
.application-form {
    background: rgba(40, 80, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 226, 193, 0.2);
    border-radius: 12px;
    padding: 3.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.form-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-back-btn {
    background: transparent;
    border: none;
    color: var(--green-primary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.step-back-btn:hover {
    color: var(--green-hover);
    transform: translateX(-2px);
}

.step-back-btn:active {
    transform: translateX(0);
}

.step-title {
    font-size: 2rem;
    font-weight: 300;
    color: var(--hero-title);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -1.5px;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

.step-description {
    font-size: 15px;
    color: var(--hero-text-light);
    margin-bottom: 3.5rem;
    line-height: 1.6;
    opacity: 1;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: left;
    gap: 0;
    min-width: 0;
    width: 100%;
    margin-bottom: 2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hero-title);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 1;
    display: block;
    text-align: left;
    font-family: 'JetBrains Mono', 'Inter', monospace;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--hero-text-light);
    margin-top: -0.25rem;
    margin-bottom: 0.75rem;
    font-style: italic;
    opacity: 0.8;
}

/* Input Styles */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(228, 234, 200, 0.3);
    border-radius: 8px;
    color: rgb(228, 234, 200);
    font-size: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    min-width: 0;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--green-medium);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(220, 226, 193, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(228, 234, 200, 0.6);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 18px 24px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23DCE2C1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Checkbox Styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.625rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgb(228, 234, 200);
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.checkbox-label:hover {
    background: rgba(220, 226, 193, 0.04);
    border-color: rgba(220, 226, 193, 0.1);
}

.form-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(220, 226, 193, 0.3);
    border-radius: 4px;
    margin-right: 0.625rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}

.form-checkbox:hover {
    border-color: rgba(220, 226, 193, 0.5);
    background: rgba(0, 0, 0, 0.25);
}

.form-checkbox:checked {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

.form-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5.5px;
    top: 1.5px;
    width: 4px;
    height: 9px;
    border: solid #1a2e1f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 226, 193, 0.15);
}

.consent-checkbox {
    padding: 0.875rem 1rem;
    background: rgba(220, 226, 193, 0.04);
    border: 1px solid rgba(220, 226, 193, 0.12);
    border-radius: 6px;
    margin-top: 0.5rem;
}

.consent-checkbox span {
    font-size: 0.8125rem;
    line-height: 1.65;
}

/* Error Styles */
.form-error {
    color: #ff6b6b;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    display: block;
    min-height: 0;
    font-weight: 500;
    line-height: 1.4;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.04);
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 3.5rem;
    justify-content: space-between;
}

.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 48px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-primary);
    color: #000000;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-primary:visited {
    background: var(--green-primary);
    color: #000000;
}

.btn-primary:hover:not(:disabled) {
    background: var(--green-hover);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.1);
    background: rgb(195, 205, 176);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 0 0 3px rgba(220, 226, 193, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: var(--green-primary);
    border: 1.5px solid var(--green-primary);
}

.btn-secondary:visited {
    background: transparent;
    color: var(--green-primary);
}

.btn-secondary:hover {
    background: rgba(220, 226, 193, 0.08);
    transform: translateY(-1px);
    border-color: var(--green-hover);
}

.btn-secondary:active {
    transform: translateY(0);
    background: rgba(220, 226, 193, 0.12);
}

/* Form Messages */
.form-message {
    margin-top: 1.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.form-message.info {
    background: rgba(220, 226, 193, 0.15);
    border: 1px solid rgba(220, 226, 193, 0.3);
    color: var(--green-primary);
}

.form-message.success {
    background: rgba(134, 239, 172, 0.15);
    border: 1px solid rgba(134, 239, 172, 0.3);
    color: #86efac;
}

/* Success Screen */
.success-screen {
    background: rgba(40, 80, 46, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 226, 193, 0.12);
    border-radius: 12px;
    padding: 4rem 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--green-primary);
    color: #1a2e1f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(220, 226, 193, 0.3);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: 1rem;
}

.success-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--hero-text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.success-details {
    background: rgba(220, 226, 193, 0.04);
    border: 1px solid rgba(220, 226, 193, 0.12);
    border-radius: 8px;
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: left;
}

.success-details h3 {
    font-size: 1.25rem;
    color: var(--green-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.success-details ul {
    list-style: none;
    padding: 0;
}

.success-details li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    color: var(--hero-text-light);
    line-height: 1.6;
    position: relative;
}

.success-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-primary);
    font-weight: bold;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn-primary,
.success-actions .btn-secondary {
    text-decoration: none;
    display: inline-block;
}

/* Footer Adjustments */
.apply-page .footer {
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .beta-banner {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .beta-title {
        font-size: 1.5rem;
    }
    
    .beta-text {
        font-size: 0.875rem;
    }
    
    .apply-wrapper {
        padding: 0 1rem;
    }
    
    .application-form,
    .success-screen {
        padding: 2.5rem 1.5rem;
    }
    
    .step-title {
        font-size: 1.5rem;
        letter-spacing: -1px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        gap: 0.5rem;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .form-navigation {
        flex-direction: column-reverse;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-text {
        font-size: 0.9375rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn-primary,
    .success-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .beta-banner-content {
        padding: 0 1rem;
    }
    
    .progress-steps {
        gap: 0.25rem;
    }
    
    .step-label {
        display: none;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 15px;
        padding: 14px 16px;
    }
    
    .form-label {
        font-size: 12px;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .application-form,
    .success-screen {
        padding: 1.5rem 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .beta-banner,
    .progress-container,
    .form-navigation {
        display: none;
    }
    
    .application-form {
        box-shadow: none;
        border: 1px solid #333;
    }
}

/* ========================================
   STAGE 0 STYLES
   ======================================== */

.stage0-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 4rem 0;
}

.stage0-content {
    max-width: 540px;
    width: 100%;
    text-align: center;
}

.stage0-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--hero-title);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -2px;
}

.stage0-description {
    font-size: 1.125rem;
    color: var(--hero-text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
    opacity: 0.9;
}

.stage0-form {
    background: rgba(40, 80, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 226, 193, 0.2);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stage0-form-group {
    margin-bottom: 1.75rem;
    text-align: left;
}

.stage0-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hero-title);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', 'Inter', monospace;
}

.stage0-input {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(228, 234, 200, 0.3);
    border-radius: 8px;
    color: rgb(228, 234, 200);
    font-size: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stage0-input:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(220, 226, 193, 0.1);
}

.stage0-input::placeholder {
    color: rgba(228, 234, 200, 0.6);
}

.stage0-consent {
    margin: 2rem 0;
    text-align: left;
}

.stage0-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: rgb(228, 234, 200);
    font-size: 0.875rem;
    line-height: 1.65;
}

.stage0-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid rgba(220, 226, 193, 0.3);
    border-radius: 4px;
    margin-right: 0.75rem;
    margin-top: 2px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.stage0-checkbox:checked {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

.stage0-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #1a2e1f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.stage0-submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: var(--green-primary);
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06);
}

.stage0-submit-btn:hover {
    background: var(--green-hover);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

.stage0-error {
    margin-top: 1rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 6px;
    color: #ff6b6b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   LOADING SCREEN STYLES
   ======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 46, 31, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    border-right: none;
    overflow: hidden;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(220, 226, 193, 0.15);
    border-top-color: var(--green-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--green-primary);
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

.loading-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.loading-step {
    display: flex;
    align-items: center;
    padding: 0.875rem 0;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.loading-step.active {
    opacity: 1;
}

.loading-step.completed {
    opacity: 0.7;
}

.step-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    position: relative;
    flex-shrink: 0;
}

.step-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(220, 226, 193, 0.2);
    border-top-color: var(--green-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.step-check {
    color: var(--green-primary);
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
}

.step-text {
    color: var(--hero-text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* ========================================
   DUPLICATE SCREEN STYLES
   ======================================== */

.duplicate-screen {
    background: rgba(40, 80, 46, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 226, 193, 0.12);
    border-radius: 12px;
    padding: 4rem 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeInUp 0.6s ease;
    max-width: 700px;
    margin: 0 auto;
}

.duplicate-icon {
    width: 80px;
    height: 80px;
    background: var(--green-primary);
    color: #1a2e1f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(220, 226, 193, 0.3);
}

.duplicate-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: 1rem;
}

.duplicate-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--hero-text-light);
    margin-bottom: 2rem;
}

.duplicate-details {
    background: rgba(220, 226, 193, 0.04);
    border: 1px solid rgba(220, 226, 193, 0.12);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.duplicate-details p {
    margin: 0.5rem 0;
    color: var(--hero-text-light);
    font-size: 0.9375rem;
}

.duplicate-details strong {
    color: var(--green-primary);
}

.contact-info {
    margin: 2.5rem 0;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.25rem;
    color: var(--green-primary);
    margin-bottom: 0.75rem;
}

.contact-info > p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    background: rgba(220, 226, 193, 0.06);
    border: 1px solid rgba(220, 226, 193, 0.15);
    border-radius: 8px;
    color: var(--green-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    font-weight: 500;
}

.contact-link:visited {
    color: var(--green-primary);
}

.contact-link:hover {
    background: rgba(220, 226, 193, 0.12);
    border-color: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 1.25rem;
}

.duplicate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.duplicate-actions .btn-primary,
.duplicate-actions .btn-secondary {
    text-decoration: none;
    display: inline-block;
}

/* ========================================
   CHROME-STYLE URL PREVIEW
   ======================================== */

.url-preview {
    margin: 2rem 0;
    animation: fadeInUp 0.5s ease;
}

.url-preview-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--green-primary);
    margin-bottom: 0.75rem;
    text-align: left;
}

.browser-chrome {
    background: rgba(40, 80, 46, 0.8);
    border: 1px solid rgba(220, 226, 193, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.browser-url-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(220, 226, 193, 0.15);
    border-radius: 6px;
    padding: 0.625rem 1rem;
}

.lock-icon {
    color: var(--green-primary);
    flex-shrink: 0;
}

.url-favicon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.url-text {
    color: var(--hero-text-light);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.3px;
    opacity: 0.9;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .stage0-container {
        padding: 2rem 0;
        min-height: 50vh;
    }
    
    .stage0-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }
    
    .stage0-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .stage0-form {
        padding: 2rem 1.5rem;
    }
    
    .loading-title {
        font-size: 1.5rem;
    }
    
    .loading-steps {
        max-width: 100%;
    }
    
    .duplicate-screen {
        padding: 3rem 2rem;
    }
    
    .duplicate-title {
        font-size: 1.5rem;
    }
    
    .duplicate-text {
        font-size: 1rem;
    }
    
    .contact-methods {
        flex-direction: column;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
    }
    
    .duplicate-actions {
        flex-direction: column;
    }
    
    .duplicate-actions .btn-primary,
    .duplicate-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stage0-title {
        font-size: 1.75rem;
    }
    
    .stage0-input {
        font-size: 15px;
        padding: 14px 18px;
    }
    
    .loading-content {
        padding: 1rem;
    }
    
    .loading-spinner {
        width: 48px;
        height: 48px;
    }
    
    .loading-title {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .loading-step {
        padding: 0.625rem 0;
    }
    
    .step-text {
        font-size: 0.875rem;
    }
    
    .duplicate-screen {
        padding: 2rem 1.5rem;
    }
    
    .duplicate-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
    
    .browser-chrome {
        padding: 0.625rem 0.875rem;
    }
    
    .browser-url-bar {
        padding: 0.5rem 0.75rem;
    }
    
    .url-text {
        font-size: 0.75rem;
    }
}

/* ========================================
   CONGRATULATIONS OVERLAY STYLES
   ======================================== */

.congratulations-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 46, 31, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.4s ease;
}

.congratulations-modal {
    background: rgba(40, 80, 46, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid var(--green-primary);
    border-radius: 16px;
    padding: 4rem 3rem;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(220, 226, 193, 0.2);
    animation: scaleInBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleInBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.congratulations-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: pulseRotate 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulseRotate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
    }
    75% {
        transform: scale(1.1) rotate(-5deg);
    }
}

.congratulations-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.congratulations-message {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--hero-text-light);
    margin-bottom: 3rem;
    opacity: 0.95;
}

.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.countdown-label {
    font-size: 1rem;
    color: var(--hero-text-light);
    opacity: 0.8;
}

.countdown-timer {
    font-size: 3rem;
    font-weight: 700;
    color: var(--green-primary);
    min-width: 70px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 226, 193, 0.1);
    border: 2px solid var(--green-primary);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(220, 226, 193, 0.2);
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(220, 226, 193, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(220, 226, 193, 0.4);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .congratulations-modal {
        padding: 3rem 2rem;
        margin: 0 1rem;
        max-width: 90%;
    }
    
    .congratulations-icon {
        font-size: 4rem;
    }
    
    .congratulations-title {
        font-size: 2rem;
    }
    
    .congratulations-message {
        font-size: 1.125rem;
    }
    
    .countdown-timer {
        font-size: 2.5rem;
        min-width: 60px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .congratulations-modal {
        padding: 2.5rem 1.5rem;
    }
    
    .congratulations-icon {
        font-size: 3rem;
    }
    
    .congratulations-title {
        font-size: 1.75rem;
    }
    
    .congratulations-message {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .countdown-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .countdown-timer {
        font-size: 2rem;
        min-width: 50px;
        height: 60px;
    }
    
    .countdown-label {
        font-size: 0.875rem;
    }
}

