/* Scoped CSS for CrebiTel Plugin */
.crebitel-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding: 20px 0;
}

.crebi-copy-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(39, 174, 96, 0.95);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crebi-copy-notification.show { opacity: 1; }

.crebi-payment-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.crebi-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    counter-reset: step;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.crebi-progress-bar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: -1;
}

.crebi-progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    position: relative;
    counter-increment: step;
}

.crebi-progress-step::before { content: counter(step); }

.crebi-progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.crebi-progress-step.active {
    background: #3498db;
    box-shadow: 0 0 0 5px rgba(52, 152, 219, 0.2);
}
.crebi-progress-step.completed { background: #27ae60; }
.crebi-progress-step.active::after { color: #3498db; font-weight: 600; }

.crebi-payment-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid #eef2f7;
}

.crebi-payment-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #27ae60, #3498db);
}

.crebi-section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.crebi-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.crebi-payment-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f9fbfd;
    cursor: pointer;
}

.crebi-payment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.crebi-payment-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.crebi-payment-number {
    font-weight: 600;
    color: #27ae60;
    margin: 10px 0;
    font-size: 1.2rem;
    padding: 5px 15px;
    background: rgba(39, 174, 96, 0.08);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.crebi-payment-number:hover { background: rgba(39, 174, 96, 0.15); transform: scale(1.03); }

.crebi-payment-status { color: #7f8c8d; font-size: 0.95rem; }

.crebi-instructions-box {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 25px;
    margin: 25px 0;
    border-radius: 8px;
}

.crebi-instructions-title { color: #2c3e50; margin-bottom: 15px; font-size: 1.2rem; font-weight: 600; }
.crebi-instruction-list { list-style: none; padding: 0; }
.crebi-instruction-list li { margin-bottom: 12px; padding-left: 30px; position: relative; line-height: 1.5; }
.crebi-instruction-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 18px; height: 18px;
    background: #3498db;
    border-radius: 50%;
}

.crebi-form-group { margin-bottom: 25px; }
.crebi-form-label { display: block; margin-bottom: 8px; color: #34495e; font-weight: 600; }
.crebi-form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9fbfd;
    box-sizing: border-box;
}
.crebi-form-input:focus { border-color: #3498db; outline: none; }
.crebi-form-input.invalid { border-color: #e74c3c; }
.crebi-error-message { color: #e74c3c; font-size: 0.9rem; margin-top: 8px; display: none; }

.crebi-action-buttons { display: flex; gap: 15px; margin-top: 20px; }
.crebi-btn {
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.crebi-btn-primary { background: linear-gradient(135deg, #27ae60, #2ecc71); color: white; }
.crebi-btn-secondary { background: linear-gradient(135deg, #3498db, #2980b9); color: white; }
.crebi-btn:hover { opacity: 0.92; transform: translateY(-2px); }

.crebi-verification-success { text-align: center; padding: 40px 20px; }
.crebi-success-icon { font-size: 4rem; color: #27ae60; margin-bottom: 20px; animation: bounce 1s ease infinite alternate; }
.crebi-success-message { color: #27ae60; font-weight: 700; font-size: 1.5rem; margin-bottom: 10px; }

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
    .crebi-payment-grid { grid-template-columns: 1fr; }
    .crebi-action-buttons { flex-direction: column; }
}