.registration-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(248, 255, 248, 0.92);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(144, 238, 144, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(34, 139, 34, 0.1);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(46, 139, 87, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

/* Custom scrollbar styling */
.registration-container::-webkit-scrollbar {
    width: 8px;
}

.registration-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.registration-container::-webkit-scrollbar-thumb {
    background: rgba(46, 139, 87, 0.4);
    border-radius: 4px;
}

.registration-container::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 139, 87, 0.6);
}

/* Progress Indicator Styles */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2D5016, #40531B, #228B22);
    width: 11.11%;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(45, 80, 22, 0.4);
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(233, 236, 239, 0.8);
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(46, 139, 87, 0.2);
    backdrop-filter: blur(5px);
}

.step-indicator.active {
    background: linear-gradient(135deg, #2D5016, #40531B);
    color: white;
    border-color: #228B22;
    box-shadow: 0 0 15px rgba(45, 80, 22, 0.4);
}

.step-indicator.completed {
    background: linear-gradient(135deg, #228B22, #2E8B57);
    color: white;
    border-color: #2E8B57;
    box-shadow: 0 0 10px rgba(46, 139, 87, 0.3);
}

.step-indicator.completed::before {
    content: "✓";
    font-weight: bold;
}

/* Form Step Styles */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.step-header p {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group.half {
    flex: 0.5;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group label.required::after {
    content: " *";
    color: #dc3545;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-register {
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-register:hover {
    background: #0056b3;
}

.btn-register:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    display: none;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #007bff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-nav {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #545b62;
}

.btn-next {
    background: #007bff;
    color: white;
    margin-left: auto;
}

.btn-next:hover {
    background: #0056b3;
}

.btn-skip {
    background: #6c757d;
    color: white;
    margin-left: auto;
}

.btn-skip:hover {
    background: #545b62;
}

.btn-next:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Form Hints */
.form-hint {
    display: block;
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Password Field Styles */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 50px;
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: color 0.3s;
    padding: 0;
    width: 24px;
    height: 24px;
}

.password-toggle:hover {
    color: #007bff;
}

.password-toggle:focus {
    outline: none;
}

/* Custom Checkbox */
.checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.6;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-label:hover .checkmark {
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

/* Registration Summary */
.registration-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.registration-summary h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #333;
}

.summary-item span {
    color: #6c757d;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* Shake animation for validation errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Error state for inputs */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .registration-container {
        margin: 0.5rem;
        padding: 1.25rem;
        border-radius: 20px;
        max-width: 100%;
    }
    
    .login-container {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 20px;
    }
    
    .progress-container {
        margin-bottom: 1.5rem;
    }
    
    .step-indicators {
        flex-wrap: nowrap;
        gap: 0.25rem;
        justify-content: center;
    }
    
    .step-indicator {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }
    
    .step-header {
        margin-bottom: 1.5rem;
    }
    
    .step-header h3 {
        font-size: 1.25rem;
    }
    
    .step-header p {
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
    }
    
    .form-hint {
        font-size: 0.8rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.25rem;
    }
    
    .btn-next {
        margin-left: 0;
    }
    
    .btn-register {
        padding: 0.85rem;
        font-size: 1rem;
    }
    
    .registration-summary {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .registration-summary h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.4rem 0;
    }
    
    .summary-item strong {
        font-size: 0.85rem;
    }
    
    .summary-item span {
        max-width: 100%;
        text-align: left;
        font-size: 0.9rem;
    }
    
    .back-link {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
    }
    
    .password-container input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .alert {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .registration-container {
        margin: 0.25rem;
        padding: 1rem;
        border-radius: 16px;
    }
    
    .login-container {
        border-radius: 16px;
    }
    
    .step-indicators {
        gap: 0.15rem;
    }
    
    .step-indicator {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .step-header {
        margin-bottom: 1.25rem;
    }
    
    .step-header h3 {
        font-size: 1.1rem;
    }
    
    .step-header h3 i {
        font-size: 1rem;
    }
    
    .step-header p {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.65rem;
    }
    
    .btn-nav {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-register {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .registration-summary {
        padding: 0.85rem;
    }
    
    .back-link {
        font-size: 0.85rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .registration-container {
        padding: 0.85rem;
        border-radius: 12px;
    }
    
    .step-indicator {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }
    
    .step-header h3 {
        font-size: 1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 16px;
    }
    
    .btn-nav {
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .registration-container {
        margin: 0.5rem auto;
        padding: 1rem;
        max-width: 450px;
    }
    
    .progress-container {
        margin-bottom: 1rem;
    }
    
    .step-header {
        margin-bottom: 1rem;
    }
    
    .step-header h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .step-header p {
        font-size: 0.85rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-navigation {
        margin-top: 1rem;
    }
    
    .registration-summary {
        margin-top: 0.75rem;
        padding: 0.75rem;
    }
}
