/* PCP Feedback - Frontend Styles */

.pcp-feedback-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Language Toggle */
.pcp-feedback-lang-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 5px;
}

.pcp-lang-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
}

.pcp-lang-btn.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.pcp-lang-btn:hover:not(.active) {
    background: #e5e5e5;
}

/* Form Styles */
.pcp-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pcp-form-group {
    display: flex;
    flex-direction: column;
}

.pcp-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.pcp-required {
    color: #dc3232;
    margin-left: 3px;
}

.pcp-form-group select,
.pcp-form-group textarea,
.pcp-form-group input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.pcp-form-group select:focus,
.pcp-form-group textarea:focus,
.pcp-form-group input[type="text"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.pcp-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Info Box */
.pcp-feedback-info {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
}

.pcp-feedback-info p {
    margin: 5px 0;
}

.pcp-country-info {
    color: #666;
}

#pcp-detected-flag {
    font-size: 18px;
    margin-left: 5px;
}

/* Rate Limit Warning */
.pcp-rate-limit-warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 12px;
    color: #92400e;
    font-size: 14px;
}

/* Buttons */
.pcp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pcp-btn-primary {
    background: #2271b1;
    color: white;
}

.pcp-btn-primary:hover:not(:disabled) {
    background: #1d5d8c;
}

.pcp-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pcp-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.pcp-btn-secondary:hover {
    background: #e5e5e5;
}

.pcp-btn-danger {
    background: #dc3232;
    color: white;
}

.pcp-btn-danger:hover:not(:disabled) {
    background: #b32d2e;
}

.pcp-btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Result Messages */
.pcp-feedback-result {
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 14px;
}

.pcp-feedback-result.success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.pcp-feedback-result.error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* Modal Styles */
.pcp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pcp-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pcp-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e5;
}

.pcp-modal-header h3 {
    margin: 0;
    color: #dc3232;
    font-size: 18px;
}

.pcp-modal-body {
    padding: 25px;
}

.pcp-warning-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

.pcp-delete-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.pcp-delete-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #333;
}

.pcp-note {
    background: #f0f9ff;
    border-left: 3px solid #2271b1;
    padding: 12px;
    margin-top: 15px;
    font-size: 13px;
    color: #1e40af;
}

.pcp-modal-body .pcp-form-group {
    margin-top: 20px;
}

.pcp-modal-body .pcp-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    text-align: center;
    text-transform: uppercase;
}

.pcp-modal-body .pcp-input:focus {
    outline: none;
    border-color: #dc3232;
}

.pcp-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Loading State */
.pcp-btn.loading {
    position: relative;
    color: transparent;
}

.pcp-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .pcp-feedback-container {
        margin: 20px;
        padding: 20px;
    }
    
    .pcp-modal-content {
        width: 95%;
    }
}
