/* Main container */
.jr-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    box-sizing: border-box;
}

.jr-container * {
    box-sizing: border-box;
}

/* Header styles */
.jr-registration-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 3px solid #00b9ce;
}

.jr-registration-header h2 {
    color: #DD3B0F;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.jr-registration-header p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 16px;
}

.jr-header-note {
    background: linear-gradient(135deg, #fff9f7 0%, #f0f9ff 100%);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #DD3B0F;
    margin-top: 20px;
}

.jr-header-note p {
    margin: 5px 0;
    color: #333;
    font-size: 15px;
}

.jr-header-note a {
    color: #00b9ce;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.jr-header-note a:hover {
    color: #DD3B0F;
    text-decoration: underline;
}

/* Step indicator */
.jr-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.jr-step-indicator:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
    transform: translateY(-50%);
}

.jr-step {
    position: relative;
    z-index: 2;
    background: white;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
    cursor: default;
}

.jr-step.active {
    border-color: #00b9ce;
    background: #00b9ce;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 185, 206, 0.2);
}

/* Form steps */
.jr-form-step {
    padding: 25px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    animation: jr-fadeIn 0.5s ease;
}

.jr-form-step.active {
    display: block;
}

@keyframes jr-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.jr-form-step h3 {
    color: #DD3B0F;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffecd8;
    font-size: 22px;
    font-weight: 600;
}

/* Form elements */
.jr-form-group {
    margin-bottom: 25px;
}

.jr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.jr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.jr-form-group input[type="text"],
.jr-form-group input[type="email"],
.jr-form-group input[type="tel"],
.jr-form-group input[type="password"],
.jr-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

/* Readonly Inputs */
.jr-form-group input.jr-readonly-input, 
.jr-form-group input[readonly] {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed;
    border-color: #ced4da;
}

.jr-form-group input:focus,
.jr-form-group select:focus {
    outline: none;
    border-color: #00b9ce;
    box-shadow: 0 0 0 4px rgba(0, 185, 206, 0.1);
}

.jr-form-group input.error,
.jr-form-group select.error {
    border-color: #e74c3c;
    background-color: #fff8f8;
}

.jr-form-group input.input-success {
    border-color: #2ecc71;
}

/* Hint Text */
.jr-hint, .jr-file-hint {
    display: block;
    color: #666;
    font-size: 13px;
    margin-top: 6px;
    font-style: italic;
}

/* File upload */
.jr-file-upload {
    position: relative;
    margin-bottom: 10px;
}

.jr-file-upload input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.jr-file-upload-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jr-file-upload-label:hover {
    border-color: #00b9ce;
    background: #f8fdff;
}

.jr-file-name {
    flex: 1;
    color: #666;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.jr-file-button {
    background: linear-gradient(135deg, #00b9ce 0%, #0099b3 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.jr-file-button:hover {
    transform: translateY(-2px);
}

/* Password strength */
.jr-password-strength {
    margin-top: 10px;
}

.jr-strength-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.jr-strength-bar.weak { background: #e74c3c; width: 33%; }
.jr-strength-bar.medium { background: #f39c12; width: 66%; }
.jr-strength-bar.strong { background: #2ecc71; width: 100%; }

.jr-strength-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Terms checkbox */
.jr-terms-group {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
}

.jr-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.5;
    font-size: 15px;
}

.jr-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    transform: scale(1.2);
    min-width: 16px;
}

.jr-checkbox-label a {
    color: #00b9ce;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.jr-checkbox-label a:hover {
    color: #DD3B0F;
    text-decoration: underline;
}

/* Buttons */
.jr-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jr-btn-next, .jr-btn-submit {
    background: linear-gradient(135deg, #00b9ce 0%, #0099b3 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.jr-btn-next:hover, .jr-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 185, 206, 0.3);
}

.jr-btn-prev {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.jr-btn-prev:hover {
    background: #e9ecef;
    border-color: #00b9ce;
    color: #00b9ce;
}

.jr-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background: #999;
}

/* Loading Spinner */
.jr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: jr-spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes jr-spin { to { transform: rotate(360deg); } }

/* Navigation */
.jr-step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

/* Error messages */
.jr-error-message {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
    font-weight: 500;
}

/* Messages */
.jr-form-message {
    margin-top: 25px;
    padding: 0;
    border-radius: 8px;
    text-align: center;
}

.jr-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 20px;
    border: 2px solid #b1dfbb;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: jr-slideIn 0.5s ease;
}

.jr-error-alert {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 20px;
    border: 2px solid #f1b0b7;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: jr-slideIn 0.5s ease;
}

.jr-info-message {
    background: #e7f5ff;
    color: #004085;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #b8daff;
    text-align: center;
}

@keyframes jr-slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   SPECIALIZED FORM LAYOUTS
   ========================================= */

/* 1. INDIVIDUAL REGISTRATION (Cleaner, narrower) */
.jr-individual-registration {
    max-width: 600px;
}

.jr-individual-registration .jr-form-step {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

/* 2. BECOME VENDOR FORM (For existing users) */
.jr-become-vendor {
    max-width: 700px; /* Slightly wider than individual to accommodate file uploads */
}

.jr-become-vendor .jr-form-step {
    /* Keeps standard card styling but ensures no hidden display issues */
    display: block; 
}

/* Responsive design */
@media (max-width: 768px) {
    .jr-container {
        margin: 20px;
        padding: 20px;
    }
    
    .jr-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .jr-step-indicator {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .jr-step-indicator:before {
        display: none;
    }
    
    .jr-step {
        width: 100%;
        min-width: auto;
        padding: 10px;
        font-size: 14px;
    }
    
    .jr-step-navigation {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .jr-step-navigation button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .jr-registration-header h2 {
        font-size: 24px;
    }
    
    .jr-form-step h3 {
        font-size: 20px;
    }
    
    .jr-btn {
        padding: 14px 20px;
    }
}