﻿/* 🔥 RESET */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial;
    background: #f4f6f8;
    overflow-x: hidden;
}

/* HEADER */
.header {
    text-align: center;
    padding: 10px 0 5px;
    background: #fff;
}
.header-bar {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg,#ff5252,#ff9800,#ffeb3b,#4caf50,#00bcd4);
    border-radius: 3px;
}


.logo {
    max-width: 140px;
    margin: 10px auto;
    display: block;
}
.footer {
    text-align: center;
    padding: 10px 0 5px;
    font-size: 10px;
   /* background: #; */
}

.footer-bar {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg,#ff5252,#ff9800,#ffeb3b,#4caf50,#00bcd4);
    border-radius: 3px;
}

/* CONTAINER */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 15px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

/* PRICE */
.price {
    font-size: 18px;
    margin-bottom: 10px;
}

/* DESCRIPTION */
.desc {
    display: none;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 6px;
}

/* FOOTER */
.card-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* INFO */
.info-btn {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.info-btn:hover {
    text-decoration: underline;
    color: #000;
}

/* SELECT */
.select-wrap {
    position: relative;
    cursor: pointer;
}

.select-wrap input {
    display: none;
}

.selected-badge {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    background: #4caf50;
    color: white;
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 8px;
}

.select-wrap input:checked + .selected-badge {
    display: block;
}

/* SELECTED CARD */
.card.selected {
    border: 2px solid #4caf50;
    box-shadow: 0 4px 12px rgba(76,175,80,0.25);
}

/* LOCKED */
.locked {
    opacity: 0.5;
}

.locked::after {
    content: "🔒 Above your value";
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
}

/* FORM */
form {
    margin-top: 20px;
}

h3 {
    margin: 20px 0 10px;
    font-size: 16px;
}

/* INPUTS */
input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-bottom: 12px;
    transition: 0.2s;
}

input:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

input::placeholder {
    color: #999;
}

/* FORM GRID */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* BUTTON */
button {
    margin-top: 20px;
    padding: 14px;
    width: 100%;
    background: linear-gradient(90deg,#ff5252,#ff9800,#4caf50);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.2s;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 📱 MOBILE */
@media (max-width: 600px) {

    .container {
        max-width: 100%;
        margin: 0;
        padding: 10px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card img {
        height: auto;
        object-fit: contain;
        max-height: 140px;
    }
}

/* 💻 DESKTOP FORM */
@media (min-width: 768px) {

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-row input {
        margin-bottom: 0;
    }
}