/**
 * Refactor Factory - Registration Form Styles
 *
 * @package RefactorFactoryPlatform
 * @since 1.0.0
 */

/* Container */
.rf-registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.rf-registration-form h2 {
    text-align: center;
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 28px;
}

.rf-intro {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
    font-size: 18px;
}

/* Progress Indicator */
.rf-progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
}

.rf-progress-step {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.rf-progress-step:first-child {
    border-radius: 8px 0 0 8px;
}

.rf-progress-step:last-child {
    border-radius: 0 8px 8px 0;
}

.rf-progress-step.active {
    background: #2563eb;
    color: white;
}

.rf-progress-step.completed {
    background: #10b981;
    color: white;
}

/* Form Steps */
.rf-form-step {
    display: none;
}

.rf-form-step.active {
    display: block;
}

/* Form Elements */
.rf-form-step h3 {
    color: #374151;
    font-size: 18px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.rf-form-step h3:first-child {
    margin-top: 0;
}

.rf-form-group {
    margin-bottom: 20px;
}

.rf-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.rf-form-group .required {
    color: #ef4444;
}

.rf-form-group input[type="text"],
.rf-form-group input[type="email"],
.rf-form-group input[type="tel"],
.rf-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.rf-form-group input:focus,
.rf-form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rf-form-group small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

/* Phone Input */
.rf-phone-input {
    display: flex;
    gap: 10px;
}

.rf-phone-input select {
    width: 130px;
    flex-shrink: 0;
}

.rf-phone-input input {
    flex: 1;
}

/* Subdomain Input */
.rf-subdomain-input {
    display: flex;
    align-items: stretch;
}

.rf-subdomain-input input {
    flex: 1;
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.rf-subdomain-suffix {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0 6px 6px 0;
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
}

/* Buttons */
.rf-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.rf-btn:active {
    transform: scale(0.98);
}

.rf-btn-primary {
    background: #2563eb;
    color: white;
}

.rf-btn-primary:hover {
    background: #1d4ed8;
}

.rf-btn-primary:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.rf-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.rf-btn-secondary:hover {
    background: #e5e7eb;
}

#submit-registration {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
}

/* Verification Code Input */
.rf-verification-code-input {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.rf-verification-code-input .code-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.rf-verification-code-input .code-digit:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Alerts */
.rf-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rf-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.rf-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.rf-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Info Box */
.rf-info-box {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.rf-info-box p {
    margin: 0 0 10px;
}

.rf-info-box ol {
    margin: 0;
    padding-left: 20px;
}

.rf-info-box li {
    margin-bottom: 8px;
}

.rf-info-box .rf-note {
    margin-top: 15px;
    font-size: 13px;
    color: #64748b;
}

/* Success Box */
.rf-success-box {
    text-align: center;
    padding: 40px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
}

.rf-success-box h2 {
    color: #166534;
    margin-bottom: 15px;
}

.rf-site-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.rf-site-details p {
    margin: 10px 0;
}

/* Alert Container Animation */
#rf-alert-container .rf-alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .rf-registration-form {
        padding: 20px 15px;
    }

    .rf-progress-indicator {
        flex-direction: column;
        padding: 0;
    }

    .rf-progress-step {
        border-radius: 0;
        padding: 10px;
    }

    .rf-progress-step:first-child {
        border-radius: 8px 8px 0 0;
    }

    .rf-progress-step:last-child {
        border-radius: 0 0 8px 8px;
    }

    .rf-phone-input {
        flex-direction: column;
    }

    .rf-phone-input select {
        width: 100%;
    }

    .rf-subdomain-input {
        flex-direction: column;
    }

    .rf-subdomain-input input {
        border-radius: 6px;
        border-right: 1px solid #d1d5db;
    }

    .rf-subdomain-suffix {
        border-radius: 6px;
        margin-top: 8px;
        justify-content: center;
    }

    .rf-verification-code-input .code-digit {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
}
