/**
 * BikeGo Registration Styles
 */

/* Container */
.bikego-registration {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.bikego-registration__container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
}

/* Progress Indicator */
.bikego-registration__progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.bikego-registration__progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.bikego-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.bikego-progress-step__number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #999;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bikego-progress-step__label {
    display: block;
    font-size: 0.875rem;
    color: #666;
}

.bikego-progress-step--active .bikego-progress-step__number {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.bikego-progress-step--complete .bikego-progress-step__number {
    background: #46b450;
    border-color: #46b450;
    color: #fff;
}

.bikego-progress-step--complete .bikego-progress-step__number::after {
    content: '✓';
}

/* Messages */
.bikego-registration__messages {
    margin-bottom: 1.5rem;
}

.bikego-notice {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.bikego-notice--success {
    background: #ecf7ed;
    border-left: 4px solid #46b450;
    color: #2e4d2f;
}

.bikego-notice--error {
    background: #f9e9e9;
    border-left: 4px solid #dc3232;
    color: #5d2626;
}

.bikego-notice--warning {
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    color: #614200;
}

.bikego-notice--info {
    background: #e5f5fa;
    border-left: 4px solid #00a0d2;
    color: #003d4f;
}

/* Form */
.bikego-form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
}

.bikego-form h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.bikego-form__description {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f7f7f7;
    border-radius: 4px;
    font-size: 0.938rem;
}

.bikego-form__row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bikego-form__field {
    flex: 1;
    margin-bottom: 1rem;
}

.bikego-form__field--wide {
    flex: 1 0 100%;
}

.bikego-form__field--checkbox {
    margin-top: 1.5rem;
}

.bikego-form__field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.bikego-form__field--checkbox label {
    display: flex;
    align-items: center;
    font-weight: 400;
}

.bikego-form__field--checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.bikego-form__field input[type="text"],
.bikego-form__field input[type="email"],
.bikego-form__field input[type="tel"],
.bikego-form__field input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.bikego-form__field input:focus {
    outline: none;
    border-color: #0073aa;
}

.bikego-form__field input.error {
    border-color: #dc3232;
    background-color: #fff5f5;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.bikego-form__error {
    display: block;
    color: #dc3232;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.bikego-form__error:not(:empty) {
    animation: fadeIn 0.2s ease-in;
}

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

.bikego-form__hint {
    display: block;
    color: #666;
    font-size: 0.813rem;
    margin-top: 0.25rem;
}

.required {
    color: #dc3232;
}

/* PayU Secure Form */
#payu-card-container {
    margin: 1.5rem 0;
}

.payu-card-form {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    transition: border-color 0.2s;
}

.payu-card-form.payu-secure-form-focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.payu-card-form.payu-secure-form-invalid:not(.payu-secure-form-focus) {
    border-color: #dc3232;
}

.payu-sf-validation-error,
.payu-sf-technical-error {
    display: none;
    color: #dc3232;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Buttons */
.bikego-form__actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.bikego-button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.bikego-button--primary {
    background: #0073aa;
    color: #fff;
}

.bikego-button--primary:hover {
    background: #005a87;
}

.bikego-button--primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bikego-button--secondary {
    background: #f7f7f7;
    color: #333;
    border: 1px solid #ddd;
}

.bikego-button--secondary:hover {
    background: #e9e9e9;
}

/* Responsive */
@media (max-width: 768px) {
    .bikego-registration__container {
        padding: 1.5rem;
    }

    .bikego-form__row {
        flex-direction: column;
    }

    .bikego-form__actions {
        flex-direction: column-reverse;
    }

    .bikego-button {
        width: 100%;
    }

    .bikego-registration__progress::before {
        left: 20%;
        right: 20%;
    }
}
