/* QBabees 3-Step Registration Form Styles */

.qbabees-registration-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.qbabees-registration-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 50px 40px;
}

/* Progress Indicator */
.registration-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    gap: 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
    background: #2196F3;
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.progress-step.completed .progress-circle {
    background: #4CAF50;
    color: white;
}

.progress-label {
    font-size: 12px;
    text-align: center;
    color: #666;
    min-width: 60px;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    margin: 25px 0;
}

/* Registration Steps */
.registration-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.registration-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Messages */
.registration-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
    display: none;
}

.registration-message.error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
    display: block;
}

.registration-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
    display: block;
}

.registration-message.info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
    display: block;
}

/* Form Sections */
.qbabees-form h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.qbabees-form h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.qbabees-form .form-section:first-child h3 {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #d32f2f;
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

.checkbox-group {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Preview Content */
.preview-content {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 30px;
}

.preview-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.preview-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.preview-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2196F3;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.preview-item {
    display: flex;
    flex-direction: column;
}

.preview-item label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.preview-item value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Confirmation Box */
.confirmation-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.confirmation-icon {
    font-size: 48px;
    color: #2196F3;
    margin-bottom: 15px;
}

.confirmation-box h3 {
    color: #2196F3;
    margin-bottom: 15px;
    border: none;
}

.confirmation-box ul {
    text-align: left;
    display: inline-block;
    list-style: none;
    padding: 0;
}

.confirmation-box li {
    padding: 8px 0;
    color: #333;
    position: relative;
    padding-left: 25px;
}

.confirmation-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Success Message */
.success-message {
    text-align: center;
}

.success-content {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 40px 30px;
}

.success-icon {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-content h2 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.success-content p {
    color: #333;
    margin-bottom: 10px;
}

.success-info {
    background: white;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    color: #1565c0;
    font-size: 14px;
}

.credentials-section {
    background: white;
    border: 2px solid #2196F3;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.credentials-section h3 {
    color: #1565c0;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.credentials-display {
    display: grid;
    gap: 15px;
}

.credential-item {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #2196F3;
}

.credential-item label {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    margin-bottom: 5px;
}

.credential-item code {
    display: block;
    background: white;
    padding: 8px 12px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d32f2f;
    word-break: break-all;
    border: 1px solid #ddd;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #2196F3;
    color: white;
}

.btn-primary:hover {
    background-color: #1976D2;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-secondary:hover {
    background-color: #616161;
}

.btn-success {
    background-color: #4CAF50;
    color: white;
}

.btn-success:hover {
    background-color: #45a049;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-large {
    padding: 15px 50px;
    font-size: 16px;
}

.step-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Membership Levels and Groups Radio Lists */
.membership-levels-list,
.groups-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.membership-option,
.group-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.membership-option:hover,
.group-option:hover {
    background: #f5f5f5;
    border-color: #2196F3;
}

.membership-radio,
.group-radio {
    margin-right: 12px;
    margin-top: 0;
    margin-bottom: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.membership-label,
.group-label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    display: block;
}

.membership-radio:checked ~ .membership-label,
.group-radio:checked ~ .group-label {
    font-weight: 600;
    color: #2196F3;
}

.membership-option input[type="radio"]:checked,
.group-option input[type="radio"]:checked {
    accent-color: #2196F3;
}

/* Responsive */
@media (max-width: 768px) {
    .qbabees-registration-container {
        padding: 30px 20px;
    }

    .registration-progress {
        flex-direction: column;
        gap: 20px;
    }

    .progress-line {
        width: 2px;
        height: 60px;
        margin: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
}
