/**
 * Pakistan Bill Checker Styles
 */

.pitc-bill-checker-wrapper {
    font-family: inherit;
    padding: 16px;
    max-width: 620px;
    margin: 0 auto;
}

.pitc-bill-checker-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    padding: 28px;
    width: 100%;
    box-sizing: border-box;
}

.pitc-result-container {
    text-align: center;
    padding: 32px 28px;
}

.pitc-bill-checker-title {
    color: var(--pitc-primary-dark, #5c2e0a);
    margin: 0 0 8px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

.pitc-bill-checker-subtitle {
    color: #666666;
    text-align: center;
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
}

.pitc-bill-checker-hint {
    color: #888888;
    text-align: center;
    margin: 0 0 22px;
    font-size: 12px;
    line-height: 1.4;
    font-style: italic;
}

.pitc-search-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--pitc-surface, #f5f0eb);
    padding: 4px;
    border-radius: 10px;
}

.pitc-search-type-selector input[type="radio"] {
    display: none;
}

.pitc-search-type-selector label {
    flex: 1;
    padding: 11px 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    color: #666666;
    background: transparent;
    font-size: 14px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pitc-search-type-selector input[type="radio"]:checked + label {
    background: linear-gradient(135deg, var(--pitc-primary, #8b4513) 0%, var(--pitc-primary-light, #a0522d) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--pitc-shadow, rgba(139, 69, 19, 0.35));
}

.pitc-form-group {
    margin-bottom: 18px;
}

.pitc-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 600;
    font-size: 14px;
}

.pitc-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--pitc-border, #e8ddd4);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    letter-spacing: 0.5px;
}

.pitc-input:focus {
    outline: none;
    border-color: var(--pitc-primary, #8b4513);
    box-shadow: 0 0 0 3px var(--pitc-focus, rgba(139, 69, 19, 0.15));
}

.pitc-input-wrapper {
    display: none;
}

.pitc-input-wrapper.active {
    display: block;
}

.pitc-example {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--pitc-surface, #faf7f4);
    border-radius: 6px;
    font-size: 13px;
    color: #777777;
    border-left: 3px solid var(--pitc-accent, #d2691e);
}

.pitc-example strong {
    color: var(--pitc-primary-dark, #5c2e0a);
}

.pitc-button-container {
    margin-top: 20px;
}

.pitc-btn {
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--pitc-primary, #8b4513) 0%, var(--pitc-primary-light, #a0522d) 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.pitc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--pitc-shadow, rgba(139, 69, 19, 0.4));
}

.pitc-btn:active {
    transform: translateY(0);
}

.pitc-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pitc-btn.loading {
    opacity: 0.75;
    cursor: wait;
    position: relative;
    color: transparent;
}

.pitc-btn.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: pitc-spin 0.7s linear infinite;
}

@keyframes pitc-spin {
    to {
        transform: rotate(360deg);
    }
}

.pitc-submit-btn,
.pitc-btn-success {
    width: 100%;
}

.pitc-btn-success {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    margin-bottom: 16px;
}

.pitc-btn-success:hover {
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.pitc-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    color: #ffffff;
    font-size: 28px;
    line-height: 56px;
    font-weight: 700;
}

.pitc-refno-display {
    background: var(--pitc-surface, #f5f0eb);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #333333;
}

.pitc-refno-display strong {
    color: var(--pitc-primary, #8b4513);
}

.pitc-back-link {
    display: block;
    margin-top: 8px;
    color: var(--pitc-primary, #8b4513);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.pitc-back-link:hover {
    text-decoration: underline;
}

.pitc-error-message {
    background: #fdecea;
    color: #b71c1c;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #f5c6cb;
    display: none;
    font-size: 13px;
    line-height: 1.4;
}

.pitc-remember-option {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pitc-remember-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--pitc-primary, #8b4513);
}

.pitc-remember-option label {
    color: #666666;
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

/* MEPCO theme */
.pitc-theme-mepco {
    --pitc-primary: #8b4513;
    --pitc-primary-light: #a0522d;
    --pitc-primary-dark: #5c2e0a;
    --pitc-accent: #d2691e;
    --pitc-surface: #f5f0eb;
    --pitc-border: #e8ddd4;
    --pitc-focus: rgba(139, 69, 19, 0.15);
    --pitc-shadow: rgba(139, 69, 19, 0.35);
}

/* FESCO theme */
.pitc-theme-fesco {
    --pitc-primary: #1565c0;
    --pitc-primary-light: #1976d2;
    --pitc-primary-dark: #0d47a1;
    --pitc-accent: #42a5f5;
    --pitc-surface: #e8f1fb;
    --pitc-border: #cfe0f5;
    --pitc-focus: rgba(21, 101, 192, 0.15);
    --pitc-shadow: rgba(21, 101, 192, 0.35);
}

/* LESCO theme */
.pitc-theme-lesco {
    --pitc-primary: #c62828;
    --pitc-primary-light: #e53935;
    --pitc-primary-dark: #8e0000;
    --pitc-accent: #ef5350;
    --pitc-surface: #fdeaea;
    --pitc-border: #f5c6c6;
    --pitc-focus: rgba(198, 40, 40, 0.15);
    --pitc-shadow: rgba(198, 40, 40, 0.35);
}

/* GEPCO theme */
.pitc-theme-gepco {
    --pitc-primary: #2e7d32;
    --pitc-primary-light: #43a047;
    --pitc-primary-dark: #1b5e20;
    --pitc-accent: #66bb6a;
    --pitc-surface: #e8f5e9;
    --pitc-border: #c8e6c9;
    --pitc-focus: rgba(46, 125, 50, 0.15);
    --pitc-shadow: rgba(46, 125, 50, 0.35);
}

/* IESCO theme */
.pitc-theme-iesco {
    --pitc-primary: #00695c;
    --pitc-primary-light: #00897b;
    --pitc-primary-dark: #004d40;
    --pitc-accent: #26a69a;
    --pitc-surface: #e0f2f1;
    --pitc-border: #b2dfdb;
    --pitc-focus: rgba(0, 105, 92, 0.15);
    --pitc-shadow: rgba(0, 105, 92, 0.35);
}

/* PESCO theme */
.pitc-theme-pesco {
    --pitc-primary: #e65100;
    --pitc-primary-light: #f57c00;
    --pitc-primary-dark: #bf360c;
    --pitc-accent: #ff9800;
    --pitc-surface: #fff3e0;
    --pitc-border: #ffe0b2;
    --pitc-focus: rgba(230, 81, 0, 0.15);
    --pitc-shadow: rgba(230, 81, 0, 0.35);
}

/* HESCO theme */
.pitc-theme-hesco {
    --pitc-primary: #6a1b9a;
    --pitc-primary-light: #8e24aa;
    --pitc-primary-dark: #4a148c;
    --pitc-accent: #ab47bc;
    --pitc-surface: #f3e5f5;
    --pitc-border: #e1bee7;
    --pitc-focus: rgba(106, 27, 154, 0.15);
    --pitc-shadow: rgba(106, 27, 154, 0.35);
}

/* SEPCO theme */
.pitc-theme-sepco {
    --pitc-primary: #283593;
    --pitc-primary-light: #3949ab;
    --pitc-primary-dark: #1a237e;
    --pitc-accent: #5c6bc0;
    --pitc-surface: #e8eaf6;
    --pitc-border: #c5cae9;
    --pitc-focus: rgba(40, 53, 147, 0.15);
    --pitc-shadow: rgba(40, 53, 147, 0.35);
}

/* QESCO theme */
.pitc-theme-qesco {
    --pitc-primary: #4e342e;
    --pitc-primary-light: #6d4c41;
    --pitc-primary-dark: #3e2723;
    --pitc-accent: #8d6e63;
    --pitc-surface: #efebe9;
    --pitc-border: #d7ccc8;
    --pitc-focus: rgba(78, 52, 46, 0.15);
    --pitc-shadow: rgba(78, 52, 46, 0.35);
}

/* TESCO theme */
.pitc-theme-tesco {
    --pitc-primary: #455a64;
    --pitc-primary-light: #607d8b;
    --pitc-primary-dark: #263238;
    --pitc-accent: #78909c;
    --pitc-surface: #eceff1;
    --pitc-border: #cfd8dc;
    --pitc-focus: rgba(69, 90, 100, 0.15);
    --pitc-shadow: rgba(69, 90, 100, 0.35);
}

@media (max-width: 640px) {
    .pitc-bill-checker-container {
        padding: 20px 16px;
    }

    .pitc-bill-checker-title {
        font-size: 20px;
    }

    .pitc-search-type-selector label {
        font-size: 12px;
        padding: 10px 8px;
    }
}
