/* PremiumAds GEO Audit — formularz audytu */

/* ── Reset lokalny ──────────────────────────────────────────── */
.pa-geo-form-wrap *,
.pa-geo-form-wrap *::before,
.pa-geo-form-wrap *::after {
    box-sizing: border-box;
}

/* ── Wrapper ────────────────────────────────────────────────── */
.pa-geo-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
}

/* ── Karta wewnętrzna ───────────────────────────────────────── */
.pa-geo-form-inner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 540px) {
    .pa-geo-form-inner {
        padding: 24px 20px;
        border-radius: 8px;
    }
}

/* ── Tytuł i lead ───────────────────────────────────────────── */
.pa-geo-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111827;
    line-height: 1.25;
}

.pa-geo-form-lead {
    color: #4b5563;
    font-size: 0.9375rem;
    margin: 0 0 28px;
}

/* ── Siatka 2-kolumnowa ─────────────────────────────────────── */
.pa-geo-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .pa-geo-row--2col {
        grid-template-columns: 1fr;
    }
}

/* ── Pole formularza ────────────────────────────────────────── */
.pa-geo-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.pa-geo-field:last-of-type {
    margin-bottom: 0;
}

.pa-geo-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.pa-geo-req {
    color: #ef4444;
    margin-left: 2px;
}

.pa-geo-optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.8125rem;
}

.pa-geo-hint {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.8125rem;
    display: block;
    margin-top: 1px;
}

/* ── Inputy ─────────────────────────────────────────────────── */
.pa-geo-field input[type="text"],
.pa-geo-field input[type="email"],
.pa-geo-field input[type="tel"],
.pa-geo-field input[type="url"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #111827;
    background: #f9fafb;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    -webkit-appearance: none;
}

.pa-geo-field input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.pa-geo-field input.pa-geo-invalid {
    border-color: #ef4444;
    background: #fff5f5;
}

.pa-geo-field input.pa-geo-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.pa-geo-field-hint {
    display: block;
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 5px;
}

/* ── Turnstile ──────────────────────────────────────────────── */
.pa-geo-turnstile-wrap {
    margin: 20px 0;
}

/* ── Checkbox ───────────────────────────────────────────────── */
.pa-geo-field--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 16px;
}

.pa-geo-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    line-height: 1.5;
}

.pa-geo-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #6366f1;
    cursor: pointer;
}

.pa-geo-checkbox-label a {
    color: #6366f1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Błąd inline ────────────────────────────────────────────── */
.pa-geo-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 0.875rem;
    padding: 12px 16px;
    margin: 16px 0 8px;
    line-height: 1.5;
}

/* ── Przycisk submit ────────────────────────────────────────── */
.pa-geo-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: #6366f1;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.pa-geo-submit:hover:not(:disabled) {
    background: #4f46e5;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.pa-geo-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.pa-geo-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.pa-geo-submit-spinner {
    letter-spacing: 2px;
    animation: pa-geo-pulse 1s infinite;
}

@keyframes pa-geo-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

/* ── Sukces ─────────────────────────────────────────────────── */
.pa-geo-success {
    display: none;
}

.pa-geo-success-inner {
    text-align: center;
    padding: 12px 0;
}

.pa-geo-success-icon {
    width: 56px;
    height: 56px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #059669;
    margin: 0 auto 20px;
}

.pa-geo-success-inner h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.pa-geo-success-inner p {
    color: #4b5563;
    font-size: 0.9375rem;
    margin: 0 0 12px;
}

.pa-geo-success-hint {
    font-size: 0.875rem;
    color: #9ca3af;
}

.pa-geo-success-hint a {
    color: #6366f1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Błąd (audit-error.php) ─────────────────────────────────── */
.pa-geo-error-inner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 0.9375rem;
    padding: 16px 20px;
    line-height: 1.5;
}

.pa-geo-error-inner p {
    margin: 0;
}
