/**
 * Yu Energy Pay by Link - Custom Styles
 * Supplements TailwindCSS with brand-specific styles
 */

/* Yu Energy brand gradient for buttons */
.btn-yu-gradient {
    background: linear-gradient(135deg, #FBB040 0%, #F5783B 50%, #EF4136 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-yu-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 120, 59, 0.4);
}

.btn-yu-gradient:active {
    transform: translateY(0);
}

.btn-yu-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Card selection styling */
.payment-option {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
}

.payment-option:hover {
    border-color: #FBB040;
}

.payment-option.selected {
    border-color: #F5783B;
    background-color: #fffbf5;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option .radio-indicator {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.payment-option.selected .radio-indicator {
    border-color: #F5783B;
}

.payment-option.selected .radio-indicator::after {
    content: '';
    width: 0.625rem;
    height: 0.625rem;
    background: linear-gradient(135deg, #FBB040, #EF4136);
    border-radius: 50%;
}

/* Form input focus states */
.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #FBB040;
    box-shadow: 0 0 0 3px rgba(251, 176, 64, 0.2);
}

/* Progress steps */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: linear-gradient(135deg, #FBB040, #EF4136);
    transform: scale(1.2);
}

.step-dot.completed {
    background-color: #10b981;
}

/* Loading spinner */
.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error messages */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Success messages */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Card styling for Encoded HPF */
.hpf-field {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: white;
    min-height: 3rem;
}

.hpf-field.invalid {
    border-color: #dc2626;
}

.hpf-field.valid {
    border-color: #16a34a;
}

/* Balance display */
.balance-amount {
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FBB040, #EF4136);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation for step transitions */
.step-content {
    animation: fadeIn 0.3s ease;
}

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

/* Hide element utility */
.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .btn-yu-gradient {
        width: 100%;
        padding: 1rem 1.5rem;
    }
}
