* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.container-app {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.header h1 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

.header p {
    font-size: 0.9em;
    opacity: 0.9;
    margin: 0;
}

.memo-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #f4a20a;
    color: #7d4e04;
    padding: 14px 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.45;
    box-shadow: 0 2px 8px rgba(244, 162, 10, 0.18);
}

.memo-banner i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.content {
    padding: 30px 20px;
}

.step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1em;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.card-item {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.card-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.card-item.active {
    border-color: #667eea;
    background: #f0f3ff;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.card-item input[type="radio"] {
    margin-right: 10px;
}

.card-item input[type="checkbox"] {
    margin-right: 10px;
    pointer-events: none;
}

.selection-order {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.25);
}

.selection-summary {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: #f5f7ff;
    border: 1px solid #d9e1ff;
}

.selection-summary-title {
    font-weight: 700;
    color: #334;
    margin-bottom: 10px;
}

.selection-summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selection-summary-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e4e8f8;
}

.selection-summary-order {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
}

.selection-summary-total {
    margin-top: 12px;
    text-align: right;
    font-weight: 700;
    color: #4b5fd1;
}

.item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.item-desc {
    font-size: 0.85em;
    color: #666;
}

.item-price {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1em;
    margin-top: 8px;
}

.btn {
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-group button {
    flex: 1;
}

.message-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: none;
}

.message-success.show {
    display: block;
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }

    .content {
        padding: 20px 15px;
    }

    .card-item {
        padding: 12px;
    }

    .selection-summary-item {
        grid-template-columns: 1fr;
    }

    .selection-summary-total {
        text-align: left;
    }
}
