/* ========================================
   bezpieczny.pro – Formularz kontaktowy
   Profesjonalny, czysty i bezpieczny kod
   Kolorystyka: złoto / pomarańcz / ciemne tło
   ======================================== */

:root {
    --gold: #FFD700;
    --orange: #FF8C00;
    --orange-deep: #E05A00;
    --orange-glow: rgba(255, 140, 0, 0.35);
    --white: #FFFFFF;
    --white-soft: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(15, 10, 5, 0.58);
    --card-border: rgba(255, 180, 50, 0.22);
    --input-bg: rgba(255, 255, 255, 0.07);
    --input-border: rgba(255, 255, 255, 0.18);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    background-image: url('../img/bkg/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--white);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    position: relative;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 5, 0, 0.55) 0%,
        rgba(20, 8, 0, 0.4) 40%,
        rgba(5, 2, 0, 0.65) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.toparea {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    padding: 2.5rem 1.25rem 3rem;
}

.container {
    width: 100%;
    max-width: 520px;
    padding: 2.25rem 2.25rem 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.container h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.9rem, 5vw, 2.4rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(255, 180, 0, 0.3);
}

.form-intro {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

/* Komunikaty */
.success,
.error {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: center;
}

.success {
    color: #1a7a3a;
    background: rgba(50, 205, 50, 0.18);
    border: 1px solid rgba(50, 205, 50, 0.35);
}

.error {
    color: #c0392b;
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.3);
}

/* Formularz */
form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    text-align: left;
}

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

label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--white-soft);
    letter-spacing: 0.02em;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--white);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input:hover,
textarea:hover {
    border-color: rgba(255, 180, 50, 0.35);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

textarea {
    height: 140px;
    resize: vertical;
    min-height: 110px;
}

button[type="submit"] {
    margin-top: 0.35rem;
    padding: 0.95rem 1.5rem;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    box-shadow: 0 6px 20px rgba(255, 100, 0, 0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 100, 0, 0.4);
    filter: brightness(1.05);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Link powrotu */
.back-link {
    display: inline-block;
    margin-top: 1.75rem;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color var(--transition);
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Stopka */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1rem 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Honeypot */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Responsywność */
@media (max-width: 560px) {
    .toparea {
        padding: 1.5rem 1rem 2rem;
    }

    .container {
        padding: 1.75rem 1.35rem 2rem;
        border-radius: 12px;
    }

    .container h1 {
        font-size: 1.7rem;
    }

    input[type="text"],
    input[type="email"],
    textarea,
    button[type="submit"] {
        font-size: 0.95rem;
    }

    textarea {
        height: 120px;
    }
}

/* Focus globalny */
a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

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

.rodo-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    text-align: left;
    line-height: 1.45;
}

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

.rodo-link {
    color: #FFD700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rodo-link:hover {
    color: #FF8C00;
}

.rodo-text {
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 180, 50, 0.2);
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    text-align: justify;
    display: none; /* domyślnie ukryte */
}

.rodo-text:target {
    display: block; /* pokazuje się po kliknięciu linku */
}

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