/* ===== RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* ===== CONTAINER ===== */
form {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px;
}

/* ===== TITLE ===== */
h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.3;
}

/* ===== GRID (MOBILE FIRST) ===== */
.gate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* kisebb step-ek */
.gate-grid.small-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== CARD ===== */
.gate-card {
    border: 2px solid #ddd;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    text-align: center;
    transition: all 0.2s ease;
}

@media (hover: hover) {
    .gate-card:hover {
        border-color: #007bff;
        transform: translateY(-3px);
    }
}

.gate-card input {
    display: none;
}

.gate-card input:checked + .card-content {
    box-shadow: 0 0 0 3px #007bff;
}


.card-content img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content span {
    display: block;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
}

/* ===== BUTTON ===== */
.next-btn {
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
    padding: 16px;
    font-size: 18px;
    background: #f5f5f5;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.next-btn:active {
    transform: scale(0.98);
}

/* ===== NAV ===== */
.nav-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 12px;
}

.back-btn {
    width: 200px;
    padding: 12px;
    font-size: 15px;
    background: #f1f1f1;
    color: #333;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
}

@media (hover: hover) {
    .back-btn:hover {
        background: #e0e0e0;
    }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
    .gate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h2 {
        font-size: 22px;
    }
}

@media (min-width: 900px) {
    .gate-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    form {
        padding: 25px;
    }

    h2 {
        font-size: 26px;
    }

    .card-content img {
        height: 150px;
    }
}

/* ===================== */
/* ===== PRODUCTS ====== */
/* ===================== */

/* 🔥 FONTOS: EZ VAN FELÜL MOST */
.products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    align-items: stretch;
}

/* tablet */
@media (min-width: 600px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* desktop */
@media (min-width: 900px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== PRODUCT CARD ===== */
.product-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    text-align: center;
    transition: 0.25s;

    display: flex;
    flex-direction: column;
}

@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-color: #007bff;
    }
}

/* ===== LINK ===== */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 10px;
}

/* ===== IMAGE ===== */
.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* ===== TITLE ===== */
.product-title {
    font-size: 15px;
    min-height: 40px;
    margin-bottom: 10px;
}

.product-link:hover .product-title {
    color: #007bff;
}

/* ===== PRICE ===== */
.product-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* ===== DESCRIPTION ===== */
.product-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
    line-height: 1.5;
    text-align: left;
}

.product-desc p {
    margin-bottom: 6px;
}

.product-desc strong {
    font-weight: 600;
}

/* ===== BUTTON ===== */
.product-btn {
    display: inline-block;
    padding: 10px 15px;
    background: #f5f5f5;        /* világos szürke */
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;

    border: 1px solid #ddd;
    margin-top: auto;
    transition: all 0.2s ease;
}

/* ===== RE-CALC ===== */
.recalc {
    text-align: center;
    margin-top: 30px;
}
/* ===== EMAIL STEP ===== */
.email-step {
    max-width: 420px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email-label {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px; 
}

/* INPUT */
.email-input {
    width: 100%;
    display: block;
    padding: 16px;
    font-size: 16px;

    border-radius: 12px;
    border: 2px solid #ddd;

    transition: all 0.2s ease;
}

.email-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

.email-btn {
    padding: 16px;
    font-size: 18px;

    background: #007bff;
    color: white;

    border: none;
    border-radius: 12px;
    cursor: pointer;

    transition: 0.2s;
}

/* 👇 ADD */
.email-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.email-btn:hover {
    background: #0056b3;
}

.email-btn:active {
    transform: scale(0.97);
}

/* ERROR */
.error {
    color: #dc3545;
    font-size: 14px;
    text-align: center;
}

html, body {
    height: 100%;
    overflow-y: auto;
}

body {
    -webkit-overflow-scrolling: touch;
}