/**
 * PESCO Bill Checker Styles
 * Color: #1E6FB9
 */

.pesco-bill-checker-wrapper {
    font-family: inherit;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    min-height: 0;
}

.pesco-bill-checker-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    padding: 20px 24px;
    max-width: 560px;
    width: 100%;
}

.pesco-result-container {
    text-align: center;
    max-width: 560px;
    width: 100%;
}

.pesco-bill-checker-title {
    color: #1E6FB9;
    margin-bottom: 6px;
    text-align: center;
    font-size: 22px;
    margin-top: 0;
    font-weight: 700;
}

.pesco-bill-checker-subtitle {
    color: #555;
    text-align: center;
    margin-bottom: 16px;
    font-size: 15px;
}

.pesco-search-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 8px;
}

.pesco-search-type-selector input[type="radio"] {
    display: none;
}

.pesco-search-type-selector label {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #555;
    background: transparent;
    font-size: 15px;
}

.pesco-search-type-selector input[type="radio"]:checked + label {
    background: #1E6FB9;
    color: white;
}

.pesco-form-group {
    margin-bottom: 14px;
}

.pesco-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

.pesco-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.pesco-input:focus {
    outline: none;
    border-color: #1E6FB9;
}

.pesco-input-wrapper {
    display: none;
}

.pesco-input-wrapper.active {
    display: block;
}

.pesco-example {
    margin-top: 8px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 15px;
    color: #555;
}

.pesco-example strong {
    color: #333;
}

.pesco-button-container {
    margin-top: 16px;
}

.pesco-btn {
    width: 100%;
    padding: 12px;
    background: #1E6FB9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

.pesco-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 111, 185, 0.4);
    background: #1a5fa0;
}

.pesco-btn:active {
    transform: translateY(0);
}

.pesco-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.pesco-btn-success {
    background: #28a745;
    padding: 12px 24px;
    font-size: 16px;
    display: inline-block;
    width: auto;
}

.pesco-btn-success:hover {
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
    background: #218838;
}

.pesco-refno-display {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 15px;
    color: #333;
}

.pesco-refno-display strong {
    color: #1E6FB9;
}

.pesco-back-link {
    margin-top: 16px;
    display: block;
    color: #1E6FB9;
    text-decoration: none;
    font-size: 15px;
}

.pesco-back-link:hover {
    text-decoration: underline;
}

/* Error message */
.pesco-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid #f5c6cb;
    display: none;
    font-size: 14px;
}

/* Loading state */
.pesco-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.pesco-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: pesco-spin 0.6s linear infinite;
}

@keyframes pesco-spin {
    to { transform: rotate(360deg); }
}

.pesco-remember-option {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pesco-remember-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1E6FB9;
}

.pesco-remember-option label {
    color: #555;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .pesco-bill-checker-wrapper {
        padding: 8px;
    }
    
    .pesco-bill-checker-container {
        padding: 16px 18px;
        border-radius: 10px;
    }
    
    .pesco-bill-checker-title {
        font-size: 20px;
    }
    
    .pesco-bill-checker-subtitle {
        font-size: 14px;
        margin-bottom: 14px;
    }
    
    .pesco-search-type-selector label {
        padding: 9px;
        font-size: 14px;
    }
    
    .pesco-input {
        padding: 10px;
        font-size: 15px;
    }
    
    .pesco-example {
        font-size: 14px;
        padding: 7px;
    }
    
    .pesco-btn {
        padding: 11px;
        font-size: 15px;
    }
    
    .pesco-remember-option label {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .pesco-bill-checker-wrapper {
        padding: 5px;
    }
    
    .pesco-bill-checker-container {
        padding: 14px 16px;
        border-radius: 8px;
    }
    
    .pesco-bill-checker-title {
        font-size: 18px;
    }
    
    .pesco-bill-checker-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .pesco-search-type-selector {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .pesco-search-type-selector label {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    .pesco-form-group {
        margin-bottom: 12px;
    }
    
    .pesco-form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .pesco-input {
        padding: 9px 10px;
        font-size: 14px;
    }
    
    .pesco-example {
        font-size: 13px;
        padding: 6px;
        margin-top: 6px;
    }
    
    .pesco-button-container {
        margin-top: 14px;
    }
    
    .pesco-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .pesco-remember-option {
        margin-top: 8px;
        gap: 6px;
    }
    
    .pesco-remember-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    .pesco-remember-option label {
        font-size: 12px;
    }
}
