/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ===== RESET & ALAP ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100dvh;
    /* Sima görgetés mobilon */
    -webkit-overflow-scrolling: touch;
    /* Szöveg méretezés tiltása elforgatáskor */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #f0f0f0;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 16px 60px;
    overflow-x: hidden;
    /* Szöveg élességét javítja kijelzőkön */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== CANVAS HÁTTÉR ===== */
#bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        150deg,
        rgba(245, 245, 242, 1) 0%,
        rgba(115, 135, 128, 1) 55%,
        rgba(100, 120, 115, 1) 100%
    );
}

/* ===== LOGO ===== */
.logo {
    width: 100%;
    text-align: center;
    margin: 10px auto 24px;
}

.logoimage {
    width: min(260px, 70vw);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
    transition: transform 0.3s ease;
}

.logoimage:hover {
    transform: scale(1.03);
}

/* ===== TIPOGRÁFIA ===== */
h1 {
    font-size: clamp(18px, 5vw, 26px);
    font-weight: 700;
    text-align: center;
    margin: 0 0 24px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 420px;
}

h2 {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 600;
    text-align: center;
    margin: 0 0 8px;
}

h3 {
    font-size: clamp(14px, 3.5vw, 17px);
    font-weight: 500;
    text-align: center;
    margin: 0 0 6px;
}

h4 {
    font-size: clamp(12px, 3vw, 15px);
    font-weight: 500;
    text-align: center;
    margin: 0 0 8px;
}

p {
    font-size: clamp(12px, 3vw, 14px);
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.55;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 10px 0;
    width: 100%;
}

/* ===== FORM ===== */
form {
    width: 100%;
    max-width: 420px;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

/* ===== INPUT MEZŐK ===== */
input[type="text"],
input[type="email"] {
    display: block;
    width: 100%;
    padding: 12px 14px;
    margin: 0 0 12px;
    border: 1.5px solid rgba(78, 204, 163, 0.7);
    border-radius: 10px;
    font-size: clamp(13px, 3.5vw, 15px);
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.35);
    color: #1a2a28;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    /* iOS zoom tiltása fókuszkor (16px alatt zoomol be) */
    font-size: max(16px, clamp(13px, 3.5vw, 15px));
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
    color: rgba(30, 50, 45, 0.55);
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #4ecca3;
    box-shadow: 0 0 0 3px rgba(78, 204, 163, 0.2);
    background: rgba(255, 255, 255, 0.5);
}

/* Autofill háttér semlegesítése (Chrome/Safari sárga doboz ellen) */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.45) inset;
    -webkit-text-fill-color: #1a2a28;
    transition: background-color 9999s ease;
}

/* ===== GOMB ===== */
.gomb {
    display: block;
    width: 100%;
    background: #4ecca3;
    padding: 13px 16px;
    color: #0f2420;
    border-radius: 10px;
    border: none;
    margin: 8px 0 0;
    text-align: center;
    font-size: clamp(13px, 3.5vw, 15px);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 14px rgba(78, 204, 163, 0.35);
    -webkit-tap-highlight-color: transparent;
    /* Akadálymentesség: fókusz gyűrű billentyűzethez */
    outline-offset: 3px;
}

.gomb:hover {
    background: #38b891;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(78, 204, 163, 0.45);
}

.gomb:active {
    transform: translateY(0);
    background: #2fa37d;
}

/* Csak billentyűzetes fókusznál látszik a keret (egérnél nem zavaró) */
.gomb:focus-visible {
    outline: 2px solid #4ecca3;
}

/* ===== STÁTUSZ BOX ===== */
.status-box {
    width: 100%;
    max-width: 420px;
    padding: 22px 22px 16px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== STÁTUSZ ELŐZMÉNY ENTRY ===== */
.status-entry {
    background: rgba(255, 255, 255, 0.22);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #4ecca3;
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.status-entry p {
    margin: 0;
    font-size: clamp(11px, 3vw, 13px);
    text-align: left;
    color: #f0f0f0;
    line-height: 1.55;
}

.status-entry strong {
    color: #4ecca3;
    font-weight: 600;
}

/* ===== AKTUÁLIS STÁTUSZ BADGE ===== */
.statusz-badge {
    display: inline-block;
    background: rgba(78, 204, 163, 0.25);
    border: 1px solid rgba(78, 204, 163, 0.6);
    color: #4ecca3;
    font-weight: 700;
    font-size: clamp(12px, 3.5vw, 15px);
    border-radius: 20px;
    padding: 4px 16px;
    margin: 6px 0 12px;
    letter-spacing: 0.3px;
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
    text-align: center;
}

/* ===== ÜZENETEK ===== */
.error,
.success,
.info-msg {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    padding: 14px 18px;
    border-radius: 12px;
    margin: 0 auto 16px;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    backdrop-filter: blur(8px);
    animation: slideUp 0.35s ease both;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.error {
    background: rgba(220, 60, 60, 0.85);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 60, 60, 0.3);
}

.success {
    background: rgba(34, 160, 90, 0.85);
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 160, 90, 0.3);
}

.info-msg {
    background: rgba(255, 190, 80, 0.2);
    border: 1px solid rgba(255, 190, 80, 0.5);
    color: #ffe8a3;
    font-weight: 400;
}

.info-msg a {
    color: #ffc6a6;
    text-decoration: underline;
}

/* ===== EMAIL FORM ===== */
.email-form {
    margin-top: 0 !important;
}

.email-form h3 {
    margin-bottom: 12px;
    font-size: clamp(13px, 3.5vw, 16px);
    color: rgba(240, 240, 240, 0.9);
    text-align: center;
}

/* ===== AKADÁLYMENTESSÉG – mozgáscsökkentés ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== RESZPONZÍV – tablet (max 600px) ===== */
@media (max-width: 600px) {
    body {
        padding: 20px 14px 48px;
    }

    form,
    .status-box,
    .error,
    .success,
    .info-msg {
        max-width: 100%;
    }
}

/* ===== RESZPONZÍV – kistelefon (max 380px) ===== */
@media (max-width: 380px) {
    body {
        padding: 16px 10px 40px;
    }

    .logoimage {
        width: 60vw;
    }

    form,
    .status-box {
        padding: 18px 14px;
    }

    .gomb {
        padding: 12px 10px;
    }
}

/* ===== LANDSCAPE MOBILON ===== */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 12px 16px 30px;
    }

    h1 {
        margin-bottom: 14px;
    }

    form {
        padding: 18px 20px;
        margin-bottom: 12px;
    }
}