/**
 * SGP Member Verification - Stylesheet
 * Stowarzyszenie Geodetów Polskich Oddział w Bydgoszczy
 */

.sgp-verify-container {
    max-width: 640px;
    margin: 25px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.sgp-verify-container * {
    box-sizing: border-box;
}

/* Nagłówek */
.sgp-verify-header {
    text-align: center;
    margin-bottom: 20px;
}

.sgp-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
}

.sgp-verify-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

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

/* Baner informacyjny */
.sgp-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #334155;
    margin-bottom: 22px;
}

.sgp-info-icon {
    font-size: 16px;
    line-height: 1;
}

/* Pola formularza */
.sgp-form {
    margin: 0;
}

.sgp-form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 520px) {
    .sgp-form-row {
        flex-direction: column;
        gap: 0;
    }
}

.sgp-form-group {
    flex: 1;
    margin-bottom: 14px;
}

.sgp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.sgp-req {
    color: #dc2626;
}

.sgp-form-group input[type="text"] {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sgp-form-group input[type="text"]:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.sgp-help-text {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* Akcje formularza i przyciski */
.sgp-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.sgp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
}

.sgp-btn-primary {
    background: #0284c7;
    color: #ffffff !important;
    flex: 1;
}

.sgp-btn-primary:hover:not(:disabled) {
    background: #0369a1;
}

.sgp-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.sgp-btn-secondary {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
}

.sgp-btn-secondary:hover {
    background: #e2e8f0;
}

/* Spinner ładowania */
.sgp-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: sgp-spin 0.8s linear infinite;
    margin-left: 8px;
}

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

/* Wynik weryfikacji */
.sgp-result-box {
    margin-top: 22px;
    padding: 20px;
    border-radius: 10px;
    animation: sgp-fade-in 0.25s ease;
}

@keyframes sgp-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Wynik: POTWIERDZONO */
.sgp-result-success {
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #14532d;
}

.sgp-result-badge-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #16a34a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.sgp-result-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #14532d;
}

.sgp-result-details {
    margin: 12px 0 0 0;
    padding: 12px 0 0 0;
    border-top: 1px dashed #bbf7d0;
    font-size: 13px;
    line-height: 1.6;
}

.sgp-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.sgp-pill-paid {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.sgp-pill-unpaid {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Wynik: BRAK W REJESTRZE */
.sgp-result-notfound {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #7f1d1d;
}

.sgp-result-badge-notfound {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.sgp-result-title-notfound {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #991b1b;
}

/* Błąd / Limit */
.sgp-result-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Stopka RODO */
.sgp-footer-note {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    color: #94a3b8;
    line-height: 1.4;
    text-align: center;
}

/* Druk */
@media print {
    .sgp-form, .sgp-footer-note, .sgp-info-banner {
        display: none !important;
    }
    .sgp-result-box {
        border: 2px solid #000000 !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
}
