/* Form Container Styles */
.form-container {
    margin-bottom: 2rem;
}

.form-header {
    background-color: var(--ka-green, #0e8a38);
    color: white;
    padding: 1.5rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

/* Form Field Styles */
.form-field {
    transition: all 0.3s ease;
}

.form-field.focused {
    transform: translateY(-2px);
}

/* Enhanced input and textarea styling with visible borders */
textarea.shadow-sm,
input.shadow-sm {
    border: 1px solid #d1d5db;
    /* Gray-300 border */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

textarea.shadow-sm:focus,
input.shadow-sm:focus {
    border-color: #0e8a38;
    /* KA green */
    box-shadow: 0 0 0 3px rgba(14, 138, 56, 0.15);
    outline: none;
}

/* Make borders more visible */
.form-field textarea,
.form-field input {
    border-width: 2px !important;
    border-color: #d1d5db !important;
}

.form-field textarea:focus,
.form-field input:focus {
    border-color: #0e8a38 !important;
}

/* Add a subtle hover effect */
.form-field textarea:hover,
.form-field input:hover {
    border-color: #9ca3af !important;
    /* Gray-400 */
}

/* Add these styles to your existing CSS file */

.validation-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.error-field {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
}

.form-field.error label {
    color: #e53e3e;
}

/* Disable browser default validation styling */
input:invalid,
select:invalid,
textarea:invalid {
    box-shadow: none !important;
}

/* Override browser default validation popup */
input::-webkit-validation-bubble-message,
select::-webkit-validation-bubble-message,
textarea::-webkit-validation-bubble-message {
    display: none !important;
}

/* Step visibility control */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Progress Steps */
.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: #0e8a38;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed {
    background-color: #059669;
    color: white;
}

.progress-step.completed::after {
    /* content: "✓";
    position: absolute; */
}

.form-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
}

.form-progress::before {
    content: "";
    position: absolute;
    height: 2px;
    background-color: #e5e7eb;
    width: 80%;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
}

/* Verification Badges */
.verification-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.verification-badge.success {
    background-color: rgba(14, 138, 56, 0.1);
    color: #0e8a38;
    border: 1px solid rgba(14, 138, 56, 0.2);
}

.verification-badge.error {
    background-color: rgba(227, 30, 36, 0.1);
    color: #e31e24;
    border: 1px solid rgba(227, 30, 36, 0.2);
}

/* Game Cards */
.game-card {
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.game-card.owned {
    border-color: #0e8a38;
}

/* Steam Auth Container */
.steam-auth-container {
    background-color: #1b2838;
    color: #c7d5e0;
}

/* Button Styles */
.btn-primary {
    background-color: var(--ka-green, #0e8a38);
}

.btn-primary:hover {
    background-color: #059669;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disabled button styles */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .form-progress {
        gap: 20px;
    }

    .progress-step {
        width: 25px;
        height: 25px;
        font-size: 0.875rem;
    }
}