/* ========================================
   Contact Form – dopasowany do projektu
   Kolorystyka, typografia i style z style.css
   ======================================== */

.contact-page {
    max-width: 640px;
}

.contact-page .header {
    margin-bottom: 2.5rem;
}

.contact-page .tagline strong {
    color: var(--primary-hover);
    font-weight: 500;
}

/* Karta formularza */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    animation: fadeUp 0.7s ease-out 0.1s both;
}

/* Alerty */
.alert {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-success .alert-icon {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-error .alert-icon {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.alert strong {
    display: block;
    margin-bottom: 0.2rem;
    color: inherit;
}

.alert p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Formularz */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-soft);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.55;
}

/* Przycisk submit */
.btn-submit {
    margin-top: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
}

/* Honeypot – całkowicie ukryty */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Link powrotu po sukcesie */
.back-link-wrap {
    margin-top: 1.5rem;
    text-align: center;
}

.back-link-wrap .btn-primary {
    display: inline-flex;
    width: auto;
    padding: 0.9rem 1.8rem;
}

/* Responsywność */
@media (max-width: 480px) {
    .contact-card {
        padding: 1.75rem 1.35rem;
    }

    .contact-page .page-title {
        font-size: 1.7rem;
    }
}

/* Focus widoczny dla dostępności */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.btn-submit:focus-visible {
    outline: 2px solid var(--primary-hover);
    outline-offset: 2px;
}

/* ========== RODO ========== */
.rodo-group {
    margin-top: 0.25rem;
}

.rodo-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-soft);
    cursor: pointer;
    line-height: 1.45;
    text-align: left;
}

.rodo-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}

.rodo-link {
    color: var(--primary-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rodo-link:hover {
    color: var(--accent);
}

.rodo-text {
    margin-top: 0.85rem;
    padding: 0.95rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-muted);
    text-align: justify;
    display: none;
}

.rodo-text:target {
    display: block;
}

/* ustawienie checkera cloudflare*/
.cf-turnstile {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 16px 0 20px;
}
