/* =========================================
   DRESSZKÓD KLUB
   világos, barátságos Dresszkód megjelenés
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px 15px 50px;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 820px;
    margin: 25px auto;
}


/* =========================================
   KLUB FEJLÉC
   ========================================= */

.header,
.logo {
    background: #ffffff;
    color: #222;
    padding: 28px 24px;
    border-radius: 14px;
    text-align: center;

    border-top: 6px solid #ffcc00;

    box-shadow:
        0 3px 12px rgba(0,0,0,0.08);
}

.header h1,
.logo h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #111;
}

.header > div {
    margin-top: 6px;
    font-size: 17px;
    color: #666;
}


/* =========================================
   TARTALMI DOBOZOK
   ========================================= */

.box,
.form-box {
    background: #ffffff;
    margin-top: 18px;
    padding: 27px;
    border-radius: 12px;

    border: 1px solid #e5e5e5;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.05);
}


/* =========================================
   CÍMEK
   ========================================= */

h2 {
    color: #222;
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 23px;
}

.box h2::after {
    content: "";
    display: block;
    width: 45px;
    height: 4px;
    background: #ffcc00;
    margin-top: 7px;
    border-radius: 5px;
}

h3 {
    color: #222;
}


/* =========================================
   SZÖVEG
   ========================================= */

p {
    line-height: 1.7;
}

.small,
.footer-note {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
   LINKEK
   ========================================= */

a {
    color: #333;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #ffcc00;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: #000;
}


/* =========================================
   ŰRLAP
   ========================================= */

label {
    display: block;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"] {
    width: 100%;

    padding: 13px 14px;

    font-size: 17px;

    background: #fff;

    color: #222;

    border: 1px solid #bbb;
    border-radius: 8px;

    outline: none;

    transition: 0.2s;
}

input:focus {
    border-color: #e5b800;

    box-shadow:
        0 0 0 3px rgba(255,204,0,0.18);
}


/* =========================================
   CHECKBOX
   ========================================= */

.checkbox {
    margin-top: 20px;
    line-height: 1.5;
}

.checkbox label {
    font-weight: normal;
    margin-top: 0;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;

    margin-right: 7px;

    accent-color: #ffcc00;

    vertical-align: middle;
}


/* =========================================
   GOMBOK
   ========================================= */

button,
.back,
.new-scan {
    display: inline-block;

    width: 100%;

    padding: 14px 20px;

    margin-top: 22px;

    background: #ffcc00;

    color: #111;

    border: none;
    border-radius: 9px;

    font-size: 17px;
    font-weight: 800;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition: 0.2s;
}

button:hover,
.back:hover,
.new-scan:hover {
    background: #111;
    color: #fff;

    transform: translateY(-1px);
}


/* =========================================
   SIKER / HIBA
   ========================================= */

.success {
    background: #eef9f0;

    border-left: 5px solid #3a9b50;

    padding: 18px;

    border-radius: 8px;

    line-height: 1.6;
}

.error {
    background: #fff0f0;

    border-left: 5px solid #cc4b4b;

    padding: 18px;

    border-radius: 8px;

    line-height: 1.6;
}


/* =========================================
   INFORMÁCIÓS DOBOZ
   ========================================= */

.notice {
    background: #fff8d5;

    border-left: 5px solid #ffcc00;

    padding: 16px;

    border-radius: 8px;
}


/* =========================================
   PONTRENDSZER
   ========================================= */

.reward {
    padding: 18px 0;

    border-bottom: 1px solid #e5e5e5;
}

.reward:last-child {
    border-bottom: 0;
}

.reward-title {
    font-size: 20px;
    font-weight: 800;
    color: #222;
}

.reward-value {
    display: inline-block;

    margin-top: 8px;

    padding: 6px 12px;

    background: #fff5bf;

    border-radius: 6px;
}

.highlight {
    font-weight: 800;

    background: #fff1a6;

    padding: 2px 5px;

    border-radius: 4px;
}


/* =========================================
   VIRTUÁLIS DRESSZKÓD KLUBKÁRTYA
   valódi kártya arány
   ========================================= */

.card {
    position: relative;
    overflow: hidden;

    width: 100%;
    max-width: 520px;
    aspect-ratio: 1.586 / 1;

    margin: 30px auto;
    padding: 28px 30px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7f7f7 100%
        );

    color: #222;

    border: 1px solid #dddddd;
    border-radius: 22px;

    box-shadow:
        0 8px 24px rgba(0,0,0,0.13);
}


/* sárga díszítés */

.card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 9px;

    background: #ffcc00;
}


/* halvány dekoráció */

.card::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: -80px;
    bottom: -100px;

    border-radius: 50%;

    background: rgba(255,204,0,0.15);
}


/* KLUB felirat */

.club {
    position: relative;
    z-index: 2;

    color: #111;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: 3px;
    text-transform: uppercase;
}


/* név */

.name {
    position: relative;
    z-index: 2;

    margin-top: 45px;

    max-width: 55%;

    font-size: 24px;
    font-weight: 800;

    color: #111;
}


/* tagsági szám */

.code {
    position: relative;
    z-index: 2;

    margin-top: 7px;

    font-size: 16px;
    font-weight: 600;

    letter-spacing: 2px;

    color: #666;
}


/* QR-KÓD */

.qr-box {
    position: absolute;
    z-index: 3;

    right: 28px;
    bottom: 28px;

    width: 135px;
    height: 135px;

    margin: 0;
    padding: 9px;

    background: white;

    border: 1px solid #dddddd;
    border-radius: 12px;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.10);
}


/* QR kép igazítása */

.qr-box img,
.qr-box canvas {
    width: 100% !important;
    height: 100% !important;
}


/* MOBILON */

@media (max-width: 600px) {

    .card {
        max-width: 390px;

        padding: 22px;

        border-radius: 18px;
    }

    .club {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .name {
        margin-top: 30px;

        max-width: 55%;

        font-size: 19px;
    }

    .code {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .qr-box {
        right: 18px;
        bottom: 18px;

        width: 105px;
        height: 105px;

        padding: 7px;
    }

}

/* =========================================
   MOBIL
   ========================================= */

@media (max-width: 600px) {

    body {
        padding: 10px 10px 35px;
    }

    .container {
        margin: 12px auto;
    }

    .header,
    .logo {
        padding: 22px 16px;
    }

    .header h1,
    .logo h1 {
        font-size: 27px;
    }

    .box,
    .form-box {
        padding: 20px 17px;
    }

}