/* CSS Tra cứu bảo hành WordPress */
.wpl-wrapper {
    max-width: 780px;
    margin: 30px auto;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.wpl-header {
    text-align: center;
    margin-bottom: 24px;
}

.wpl-icon-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    margin-bottom: 12px;
}

.wpl-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.wpl-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Tabs */
.wpl-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.wpl-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpl-tab-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* Input group */
.wpl-input-group {
    display: flex;
    gap: 8px;
    position: relative;
}

.wpl-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
}

.wpl-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wpl-submit-btn {
    height: 48px;
    padding: 0 24px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.wpl-submit-btn:hover {
    opacity: 0.9;
}

/* Card kết quả */
.wpl-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.wpl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.wpl-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.wpl-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.wpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    font-size: 14px;
}

.wpl-grid-item span {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.wpl-grid-item strong {
    color: #1e293b;
    font-weight: 600;
}

/* Progress bar */
.wpl-progress-wrap {
    margin: 16px 0;
}

.wpl-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.wpl-progress-fill {
    height: 100%;
    background: #16a34a;
    transition: width 0.4s ease;
}

/* Alert Box */
.wpl-alert-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 14px;
}

/* In ấn phiếu bảo hành */
@media print {
    body * {
        visibility: hidden;
    }
    .wpl-card, .wpl-card * {
        visibility: visible;
    }
    .wpl-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
    }
}
