/* ========================================
   pay.css — Custom styles for payment SPA
   Layered on top of TailwindCSS CDN
   ======================================== */

/* --- Step Indicator --- */
.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-dot.active {
    background-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.step-dot.completed {
    background-color: #22c55e;
}

/* --- Step Line --- */
.step-line {
    height: 2px;
    flex: 1;
    background-color: #d1d5db;
    transition: background-color 0.3s ease;
}

.step-line.active {
    background-color: #6366f1;
}

/* --- Tariff Cards --- */
.tariff-card {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
    user-select: none;
}

.tariff-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.tariff-card.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* --- Payment Methods --- */
.payment-method {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    user-select: none;
}

.payment-method:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
}

.payment-method.selected {
    border-color: #6366f1;
    background-color: #eef2ff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.15);
}

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

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

/* --- Spinner --- */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* --- Countdown Ring --- */
.countdown-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.countdown-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        #6366f1 var(--progress, 100%),
        #e5e7eb var(--progress, 100%)
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #fff calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #fff calc(100% - 3px));
}

/* --- Phone Input --- */
.phone-input {
    font-size: 18px;
    padding: 14px;
}
