:root {
    --primary: #baad7b;
    --primary-hover: #898268;
    --bg: #f5f7fb;
    --card-bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success: #16a34a;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
}

#constructor-app {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
}

/* ===== Progress bar ===== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 100px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    transition: width 0.4s ease;
}

/* ===== Titles ===== */

#step-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text);
}

/* ===== Grid cards ===== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.card p {
    margin: 0 0 20px;
    color: var(--muted);
}

.card button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.card button:hover {
    background: var(--primary-hover);
}

/* ===== Checkbox groups ===== */

h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text);
}

label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

label:hover {
    border-color: var(--primary);
    background: #f0f6ff;
}

input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

/* ===== Buttons ===== */

button {
    margin-top: 25px;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    background: var(--primary);
    color: white;
    transition: all 0.2s ease;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ===== Form ===== */

form {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 500px;
}

form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 15px;
    transition: border 0.2s ease;
}

form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== Success message ===== */

.success-message {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.success-message h2 {
    color: var(--success);
}

/* ===== Step fade animation ===== */

#step-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile ===== */

@media (max-width: 768px) {

    #constructor-app {
        margin: 30px auto;
    }

    .card {
        padding: 20px;
    }

    form {
        padding: 20px;
    }

}


/* ===== Loader ===== */

.loader-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    animation: fadeIn 0.3s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* ===== Shop items with images ===== */

.shop-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shop-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.shop-item span {
    flex: 1;
}

/* ===== Package images ===== */

.card-image {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 16px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}
